Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
= committed Oct 17, 2024
1 parent ab23236 commit 58c7ed6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions auctions/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ def test_user_can_print_own_labels(self):
response = self.client.get(self.url)
# messages = list(response.wsgi_request._messages)
assert response.status_code == 200
assert "attachment; filename=" in response.headers["Content-Disposition"]
assert "attachment;filename=" in response.headers["Content-Disposition"]

def test_small_labels(self):
user_label_prefs, created = UserLabelPrefs.objects.get_or_create(user=self.user)
Expand All @@ -882,7 +882,7 @@ def test_small_labels(self):
self.client.login(username=self.user, password="testpassword")
response = self.client.get(self.url)
assert response.status_code == 200
assert "attachment; filename=" in response.headers["Content-Disposition"]
assert "attachment;filename=" in response.headers["Content-Disposition"]

def test_thermal_labels(self):
"""Test that a regular user can print their own labels."""
Expand All @@ -896,7 +896,7 @@ def test_thermal_labels(self):
self.client.login(username=self.user, password="testpassword")
response = self.client.get(self.url)
assert response.status_code == 200
assert "attachment; filename=" in response.headers["Content-Disposition"]
assert "attachment;filename=" in response.headers["Content-Disposition"]

def test_non_admin_cannot_print_others_labels(self):
"""Test that a non-admin user cannot print labels for other users."""
Expand Down

0 comments on commit 58c7ed6

Please sign in to comment.