Skip to content

Commit 9bf3092

Browse files
committed
Fix tests
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 4375ac9 commit 9bf3092

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
@@ -168,8 +168,9 @@ def test_vulnerabilties_search_view_can_find_alias(self):
168168
self.assertEqual(response.status_code, 200)
169169

170170

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

0 commit comments

Comments
 (0)