From f0153fceffead48d51a7283257b3782f3f2dcd52 Mon Sep 17 00:00:00 2001 From: Nyasha Chizampeni Date: Fri, 26 Jul 2024 19:01:10 +0200 Subject: [PATCH] Update tests.py --- stock/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stock/tests.py b/stock/tests.py index 9d5d075..8ecf0d6 100644 --- a/stock/tests.py +++ b/stock/tests.py @@ -22,18 +22,18 @@ def test_gas_model(self): class GasListViewTest(TestCase): def test_gas_list_view(self): - url = reverse('stock:gas_list') + url = reverse('gas_list') response = self.client.get(url) self.assertEqual(response.status_code, 200) class GasCreateViewTest(TestCase): def test_gas_create_view(self): - url = reverse('stock:gas_create') + url = reverse('gas_create') response = self.client.get(url) self.assertEqual(response.status_code, 200) def test_gas_create_form_submission(self): - url = reverse('stock:gas_create') + url = reverse('gas_create') data = { 'name': 'Gas B', 'quantity': 5,