Skip to content

Commit

Permalink
fix test name
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilouf committed Feb 20, 2025
1 parent 3c6b3d0 commit eaa9b11
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lemarche/api/siaes/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,11 @@ def setUpTestData(cls):

def test_should_return_4O4_if_siae_excluded(self):
siae_opcs = SiaeFactory(kind="OPCS")
url = reverse("api:siae-detail", args=[siae_opcs.id]) # anonymous
response = self.client.get(url)
self.assertEqual(response.status_code, 401)
url = reverse("api:siae-detail", args=[siae_opcs.id])
response = self.authenticated_client.get(url)
self.assertEqual(response.status_code, 404)

def test_should_return_simple_siae_object_to_anonymous_users(self):
def test_should_return_401_to_anonymous_users(self):
url = reverse("api:siae-detail", args=[self.siae.id]) # anonymous user
response = self.client.get(url)
self.assertEqual(response.status_code, 401)
Expand Down

0 comments on commit eaa9b11

Please sign in to comment.