aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
diff options
context:
space:
mode:
authorBen Sturmfels <ben@sturm.com.au>2021-03-06 11:43:22 +1100
committerBen Sturmfels <ben@sturm.com.au>2021-03-06 11:43:22 +1100
commit370d8a72964b4d6ba75d68cc0113730c037428fa (patch)
treeee4e5d07581da6e484801553bafbfc9118b87d1f /mediagoblin/tests
parentf7a4dd116879450d011c643433c123f91f182eb3 (diff)
downloadmediagoblin-370d8a72964b4d6ba75d68cc0113730c037428fa.tar.lz
mediagoblin-370d8a72964b4d6ba75d68cc0113730c037428fa.tar.xz
mediagoblin-370d8a72964b4d6ba75d68cc0113730c037428fa.zip
More robust test fix.
Diffstat (limited to 'mediagoblin/tests')
-rw-r--r--mediagoblin/tests/test_edit.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py
index 815d62ba..1593fa5d 100644
--- a/mediagoblin/tests/test_edit.py
+++ b/mediagoblin/tests/test_edit.py
@@ -255,5 +255,5 @@ class TestMetaDataEdit:
assert new_metadata == old_metadata
context = template.TEMPLATE_TEST_CONTEXT[
'mediagoblin/edit/metadata.html']
- expected = "'On the worst day' is not a 'date-time'"
- assert context['form'].errors['media_metadata'][2]['identifier'][0] == expected
+ expected_error = {'identifier': ["'On the worst day' is not a 'date-time'"]}
+ assert expected_error in context['form'].errors['media_metadata']