mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Update test_reports.py
This commit is contained in:
parent
a2bcc8b9c0
commit
1859d56ddf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue