Update test_reports.py

This commit is contained in:
zandercymatics 2023-12-04 09:19:42 -07:00
parent a2bcc8b9c0
commit 1859d56ddf
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -85,7 +85,7 @@ class CsvReportsTest(TestCase):
with patch("builtins.open", fake_open):
call_command("generate_current_federal_report", checkpath=False)
content = fake_open()
# Now you can make assertions about how you expect 'file' to be used.
content.write.assert_has_calls(expected_file_content)
@boto3_mocking.patching
@ -105,7 +105,7 @@ class CsvReportsTest(TestCase):
with patch("builtins.open", fake_open):
call_command("generate_current_full_report", checkpath=False)
content = fake_open()
# Now you can make assertions about how you expect 'file' to be used.
content.write.assert_has_calls(expected_file_content)
@boto3_mocking.patching