Skip to content

Commit

Permalink
test: change test to reflect togglecorps default values
Browse files Browse the repository at this point in the history
  • Loading branch information
ElJocho committed Jan 10, 2024
1 parent fae5c1b commit 8bec12e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions mapswipe_workers/tests/integration/test_overall_stats.py
Original file line number Diff line number Diff line change
@@ -33,18 +33,15 @@ def test_get_project_static_info_custom_answer_retrieval(self):
custom_options_values = list(df["custom_options"])
self.assertListEqual(
sorted(custom_options_values),
sorted(
sorted( # one has custom options defined
[
"""[{"color": "", "label": "", "value": -999},
{"color": "#008000", "label": "yes", "value": 1},
{"color": "#FF0000", "label": "no", "value": 2},
{"color": "#FFA500", "label": "maybe", "value": 3}]""".replace(
"\n", " "
),
"""[{"color": "", "label": "no", "value": 0},
{"color": "green", "label": "yes", "value": 1},
{"color": "orange", "label": "maybe", "value": 2},
{"color": "red", "label": "bad imagery", "value": 3}]""".replace(
), # the other one not - thus default values are used
"""[{"value": 0}, {"value": 1}, {"value": 2}, {"value": 3}]""".replace(
"\n", " "
),
]

0 comments on commit 8bec12e

Please sign in to comment.