add a computer to test
This commit is contained in:
parent
c33b6cd6ef
commit
e012e1d576
|
@ -251,8 +251,9 @@ def test_computer_list_view_no_computers(create_admin_user):
|
||||||
|
|
||||||
|
|
||||||
def test_computer_list_view(create_admin_user):
|
def test_computer_list_view(create_admin_user):
|
||||||
create_admin_user()
|
fixture = create_admin_user()
|
||||||
computer = mixer.blend('inventory.Computer')
|
computer = mixer.blend('inventory.Computer',
|
||||||
|
customer=fixture['customer'])
|
||||||
client = Client()
|
client = Client()
|
||||||
client.login(username="novartis-admin", password="password")
|
client.login(username="novartis-admin", password="password")
|
||||||
response = client.get('/computers/all/')
|
response = client.get('/computers/all/')
|
||||||
|
|
Loading…
Reference in New Issue