You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# self.assertTrue("filename=events.zip" in response["Content-Disposition"])
self.assertEqual(200, response.status_code)
Expected Behavior
The test should be tidy in the way that it deletes all files that are generated during the testing process. So it should remove test.json file after its execution.
Current Behavior
A file named test.json will appear after running this test.
Ideas for Improvement
Add the code to remove the file after the test passes.
Steps to Reproduce
Run the above test independently or the entire test suite, for example: python manage.py test mercury.tests.test_event.TestEventView.test_export_all_json
A file named test.json will persist after the test, if it passes. It is unclear to this point whether the file is also left undeleted if the test fails.
The text was updated successfully, but these errors were encountered:
The following function on master branch creates an untracked file in project repository:
spring2020-cs-gy-9223-class/mercury/tests/test_event.py
Lines 326 to 337 in f4fd5ec
Expected Behavior
The test should be tidy in the way that it deletes all files that are generated during the testing process. So it should remove test.json file after its execution.
Current Behavior
A file named test.json will appear after running this test.
Ideas for Improvement
Add the code to remove the file after the test passes.
Steps to Reproduce
python manage.py test mercury.tests.test_event.TestEventView.test_export_all_json
The text was updated successfully, but these errors were encountered: