diff options
author | Ben Sturmfels <ben@sturm.com.au> | 2021-03-06 11:43:22 +1100 |
---|---|---|
committer | Ben Sturmfels <ben@sturm.com.au> | 2021-03-06 11:43:22 +1100 |
commit | 370d8a72964b4d6ba75d68cc0113730c037428fa (patch) | |
tree | ee4e5d07581da6e484801553bafbfc9118b87d1f /mediagoblin/tests | |
parent | f7a4dd116879450d011c643433c123f91f182eb3 (diff) | |
download | mediagoblin-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.py | 4 |
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'] |