From 462bb8f4857c64deab14ba3f323e41aa4b01cae9 Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 18 Jan 2025 21:43:37 +0100 Subject: [PATCH] refactor: formatting --- src/tests/test_views/test_basic_views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/tests/test_views/test_basic_views.py b/src/tests/test_views/test_basic_views.py index ad24122..d3aedcf 100644 --- a/src/tests/test_views/test_basic_views.py +++ b/src/tests/test_views/test_basic_views.py @@ -21,12 +21,11 @@ class BasicViewTest(TestCase): test_user0.save() ans = [] - for i in range(0,8): + for i in range(0, 8): ans.append(baker.make(AdoptionNotice, name=f"TestAdoption{i}")) - for i in range(0,4): + for i in range(0, 4): AdoptionNotice.objects.get(name=f"TestAdoption{i}").set_active() - def test_index_logged_in(self): self.client.login(username='testuser0', password='12345') @@ -42,4 +41,3 @@ class BasicViewTest(TestCase): self.assertEqual(response.status_code, 200) self.assertContains(response, "TestAdoption1") self.assertNotContains(response, "TestAdoption4") # Should not be active, therefore not shown -