fix view test after changing export file name

This commit is contained in:
Rachid Mrad 2023-12-29 23:18:29 -05:00
parent 6819d93447
commit 530fa9ec8b
No known key found for this signature in database
GPG key ID: EF38E4CEC4A8F3CF

View file

@ -38,5 +38,5 @@ class TestViews(TestCase):
self.assertEqual(response["Content-Type"], "text/csv")
# Check if the filename in the Content-Disposition header matches the expected pattern
expected_filename = f"growth-from-{start_date}-to-{end_date}.csv"
expected_filename = f"domain-growth-report-{start_date}-to-{end_date}.csv"
self.assertIn(f'attachment; filename="{expected_filename}"', response["Content-Disposition"])