Test fixes

This commit is contained in:
2021-11-12 14:25:36 -06:00
parent 8f184c9b56
commit cc1421c6e1
3 changed files with 9 additions and 9 deletions

View File

@@ -18,9 +18,9 @@ class TestVenueViews(TestCase):
def test_venue_list(self):
response = self.client.get(reverse('venues list'))
self.assertEqual(response.status_code, 200)
self.assertIn((1, 'Chesapeake Racetrack and Ballpark'), response.context['items'])
self.assertIn((2, 'Tokyo Fitness Center'), response.context['items'])
self.assertIn((25, 'ILB Historical Preservation Site'), response.context['items'])
self.assertIn({'id':1, 'title':'Chesapeake Racetrack and Ballpark'}, response.context['items'])
self.assertIn({'id':2, 'title':'Tokyo Fitness Center'}, response.context['items'])
self.assertIn({'id':25, 'title':'ILB Historical Preservation Site'}, response.context['items'])
def test_venue_edit(self):
response = self.client.get(reverse('edit venue', args=[1]))