Skip to content

Commit 8bec12e

Browse files
committed
test: change test to reflect togglecorps default values
1 parent fae5c1b commit 8bec12e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

mapswipe_workers/tests/integration/test_overall_stats.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,15 @@ def test_get_project_static_info_custom_answer_retrieval(self):
3333
custom_options_values = list(df["custom_options"])
3434
self.assertListEqual(
3535
sorted(custom_options_values),
36-
sorted(
36+
sorted( # one has custom options defined
3737
[
3838
"""[{"color": "", "label": "", "value": -999},
3939
{"color": "#008000", "label": "yes", "value": 1},
4040
{"color": "#FF0000", "label": "no", "value": 2},
4141
{"color": "#FFA500", "label": "maybe", "value": 3}]""".replace(
4242
"\n", " "
43-
),
44-
"""[{"color": "", "label": "no", "value": 0},
45-
{"color": "green", "label": "yes", "value": 1},
46-
{"color": "orange", "label": "maybe", "value": 2},
47-
{"color": "red", "label": "bad imagery", "value": 3}]""".replace(
43+
), # the other one not - thus default values are used
44+
"""[{"value": 0}, {"value": 1}, {"value": 2}, {"value": 3}]""".replace(
4845
"\n", " "
4946
),
5047
]

0 commit comments

Comments
 (0)