Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/nyashaChiza/GDS
Browse files Browse the repository at this point in the history
  • Loading branch information
nyashaChiza committed Aug 6, 2024
2 parents fdab406 + f0153fc commit e740f82
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 e740f82

Please sign in to comment.