Skip to content

Commit

Permalink
Update tests.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nyashaChiza authored Jul 26, 2024
1 parent cade1f0 commit f0153fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stock/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit f0153fc

Please sign in to comment.