Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewhegarty committed Sep 12, 2023
1 parent 8d6b510 commit 5899b1d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/core/tests/test_admin_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,7 @@ def test_import_action_handles_UnicodeDecodeError_as_form_error(self):
self.assertEqual(response.status_code, 200)
target_msg = (
"'UnicodeDecodeError' encountered while trying to read file. "
"Ensure you have chosen the correct format for the file. "
"'codec' codec can't decode bytes in position 1-1: fail!"
"Ensure you have chosen the correct format for the file."
)
# required for testing via tox
# remove after django 5.0 released
Expand All @@ -294,8 +293,7 @@ def test_import_action_handles_ValueError_as_form_error(self):
self.assertEqual(response.status_code, 200)
target_msg = (
"'ValueError' encountered while trying to read file. "
"Ensure you have chosen the correct format for the file. "
"some unknown error"
"Ensure you have chosen the correct format for the file."
)

# required for testing via tox
Expand Down

0 comments on commit 5899b1d

Please sign in to comment.