Skip to content

Commit

Permalink
test: fix test_upload_file__not_exist due to windows posix path
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Nov 21, 2024
1 parent 7d7b38e commit fdfa022
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/endpoints/test_submissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ def test_upload_file__not_exist(self):
form_id=fixture["form_id"],
project_id=fixture["project_id"],
)
self.assertIn(
'file_path: file or directory at path "/file/path/does/not/exist.jpg" does not exist',
str(context.exception),
)
self.assertIn("file_path: file or directory at path", str(context.exception))
# NOTE we avoid checking the path in the exception, due to differences on Windows/Linux
self.assertIn("does not exist", str(context.exception))

0 comments on commit fdfa022

Please # to comment.