We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fae5c1b commit 8bec12eCopy full SHA for 8bec12e
mapswipe_workers/tests/integration/test_overall_stats.py
@@ -33,18 +33,15 @@ def test_get_project_static_info_custom_answer_retrieval(self):
33
custom_options_values = list(df["custom_options"])
34
self.assertListEqual(
35
sorted(custom_options_values),
36
- sorted(
+ sorted( # one has custom options defined
37
[
38
"""[{"color": "", "label": "", "value": -999},
39
{"color": "#008000", "label": "yes", "value": 1},
40
{"color": "#FF0000", "label": "no", "value": 2},
41
{"color": "#FFA500", "label": "maybe", "value": 3}]""".replace(
42
"\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(
+ ), # the other one not - thus default values are used
+ """[{"value": 0}, {"value": 1}, {"value": 2}, {"value": 3}]""".replace(
48
49
),
50
]
0 commit comments