Convert visualize tests to pytest fixtures
This commit is contained in:
parent
a34b6243fd
commit
e9b8e8ee68
|
@ -1,11 +0,0 @@
|
|||
from django.test import TestCase
|
||||
|
||||
|
||||
class VisualeTest(TestCase):
|
||||
fixtures = ['main/fixtures/arches.json', 'main/fixtures/repos.json',
|
||||
'main/fixtures/package.json']
|
||||
|
||||
def test_urls(self):
|
||||
for url in ['', 'by_repo/', 'by_arch/']:
|
||||
response = self.client.get('/visualize/{}'.format(url))
|
||||
self.assertEqual(response.status_code, 200)
|
|
@ -0,0 +1,4 @@
|
|||
def test_urls(client, arches, repos, package):
|
||||
for url in ['', 'by_repo/', 'by_arch/']:
|
||||
response = client.get('/visualize/{}'.format(url))
|
||||
assert response.status_code == 200
|
Loading…
Reference in New Issue