Skip to content

Commit

Permalink
fix: api_rest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-filicetti committed Oct 15, 2024
1 parent 2ef3ec4 commit 7125b9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions uniticket/api_rest/tests/test_01_basic_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def setUp(self):

def test_strutture_list(self):
req = Client()
url = reverse('api-strutture-list')
url = reverse('api_rest:api-strutture-list')

# no auth
res = req.get(url)
Expand All @@ -136,7 +136,7 @@ def test_strutture_list(self):

def test_category_list(self):
req = Client()
url = reverse('api-ticket-category-list')
url = reverse('api_rest:api-ticket-category-list')

# no auth
res = req.get(url)
Expand Down Expand Up @@ -210,7 +210,7 @@ def test_new_ticket(self):


# get ticket list
lurl = reverse("api-ticket-user-list")
lurl = reverse("api_rest:api-ticket-user-list")

# create another ticket
req.post(
Expand All @@ -229,7 +229,7 @@ def test_new_ticket(self):
)

# close ticket
curl = reverse("api-ticket-close", kwargs={'ticket_id': tcode})
curl = reverse("api_rest:api-ticket-close", kwargs={'ticket_id': tcode})
res = req.post(curl, data={'note': "have to go"}, **self.at.as_http_header)
self.assertTrue(
res.json()['messages'][0].get("SUCCESS", None)
Expand Down

0 comments on commit 7125b9f

Please sign in to comment.