Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
  • Loading branch information
TG1999 committed Dec 27, 2023
1 parent 4375ac9 commit 9bf3092
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions vulnerabilities/tests/test_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,9 @@ def test_vulnerabilties_search_view_can_find_alias(self):
self.assertEqual(response.status_code, 200)


def test_robots_txt(self):
response = self.client.get("/robots.txt")
assert response.status_code == 200
response = self.client.post("/robots.txt")
assert response.status_code == 405
class CheckRobotsTxtTestCase(TestCase):
def test_robots_txt(self):
response = self.client.get("/robots.txt")
assert response.status_code == 200
response = self.client.post("/robots.txt")
assert response.status_code == 405

0 comments on commit 9bf3092

Please sign in to comment.