Skip to content

Commit

Permalink
Fixed test and types
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroCoronadoN committed Oct 17, 2024
1 parent 95febf1 commit de28427
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/apps/activities/domain/scores_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CalculationType(enum.StrEnum):
PERCENTAGE = "percentage"


class ScoringType(str, enum.StrEnum):
class ScoringType(enum.StrEnum):
SCORE = "score"
RAW_SCORE = "raw_score"

Expand Down
2 changes: 1 addition & 1 deletion src/apps/applets/tests/test_applet_activity_items.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ async def test_create_applet__activity_with_subscale_settings_and_lookup_table_a
assert resp.status_code == http.HTTPStatus.CREATED
result = resp.json()["result"]
assert result["activities"][0]["subscaleSetting"] == sub_setting.dict(by_alias=True)
assert result["activities"][0]["scoresAndReports"]["reports"][0]["scoringType"] == ScoringType.SCORE.value
assert result["activities"][0]["scoresAndReports"]["reports"][0]["scoringType"] == ScoringType.SCORE
assert result["activities"][0]["scoresAndReports"]["reports"][0]["subscaleName"] == "subscale type score"

async def test_create_applet__activity_with_subscale_settings_with_invalid_subscale_lookup_table_age(
Expand Down

0 comments on commit de28427

Please sign in to comment.