From 1859d56ddf5b3f9937adac74cd001f67e92b0917 Mon Sep 17 00:00:00 2001 From: zandercymatics <141044360+zandercymatics@users.noreply.github.com> Date: Mon, 4 Dec 2023 09:19:42 -0700 Subject: [PATCH] Update test_reports.py --- src/registrar/tests/test_reports.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/registrar/tests/test_reports.py b/src/registrar/tests/test_reports.py index 266f7c799..b94316248 100644 --- a/src/registrar/tests/test_reports.py +++ b/src/registrar/tests/test_reports.py @@ -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