Skip to content

Commit

Permalink
tests: fix referencebrowser extraction Errors (was not translated, wo…
Browse files Browse the repository at this point in the history
…rks on my machine)
  • Loading branch information
lenadax committed Sep 9, 2024
1 parent 202f674 commit f499c0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/cone/app/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_suite(): # pragma: no cover
suite.addTest(unittest.findTestCases(test_browser_layout))
suite.addTest(unittest.findTestCases(test_browser_login))
suite.addTest(unittest.findTestCases(test_browser_order))
# suite.addTest(unittest.findTestCases(test_browser_referencebrowser)) # XXX: extraction errors
suite.addTest(unittest.findTestCases(test_browser_referencebrowser))
# suite.addTest(unittest.findTestCases(test_browser_resources)) # XXX: can wait until resources finalized
suite.addTest(unittest.findTestCases(test_browser_search))
suite.addTest(unittest.findTestCases(test_browser_settings))
Expand Down
4 changes: 2 additions & 2 deletions src/cone/app/tests/test_browser_referencebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def test_single_reference(self):
data = widget.extract(request)
self.assertEqual(
[data.value, data.extracted, data.errors],
[UNSET, '', [ExtractionError('Mandatory field was empty')]]
[UNSET, '', [ExtractionError('required_message',)]]
)

request.params['ref'] = 'Item'
Expand Down Expand Up @@ -667,7 +667,7 @@ def test_multi_reference(self):
data = widget.extract(request)
self.assertEqual(
[data.value, data.extracted, data.errors],
[UNSET, [], [ExtractionError('Mandatory field was empty')]]
[UNSET, [], [ExtractionError('required_message',)]]
)

request.params['ref-exists'] = 'exists'
Expand Down

0 comments on commit f499c0f

Please sign in to comment.