Skip to content

Commit 8667363

Browse files
committed
Fix tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 4a2e140 commit 8667363

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

vulnerabilities/tests/test_view.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,9 @@ def test_vulnerabilties_search_view_can_find_alias(self):
170170
self.assertEqual(response.status_code, 200)
171171

172172

173-
def test_robots_txt(self):
174-
response = self.client.get("/robots.txt")
175-
assert response.status_code == 200
176-
response = self.client.post("/robots.txt")
177-
assert response.status_code == 405
173+
class CheckRobotsTxtTestCase(TestCase):
174+
def test_robots_txt(self):
175+
response = self.client.get("/robots.txt")
176+
assert response.status_code == 200
177+
response = self.client.post("/robots.txt")
178+
assert response.status_code == 405

0 commit comments

Comments
 (0)