use mixer in test_computer_detail_view

This commit is contained in:
Andreas Zweili 2019-08-11 20:55:01 +02:00
parent 2864649766
commit e1edc3d238
1 changed files with 2 additions and 2 deletions

View File

@ -105,8 +105,8 @@ def test_computer_detail_view_not_logged_in():
def test_computer_detail_view(create_admin_user):
fixture = create_admin_user()
computer = mixer.blend('inventory.Computer', customer=fixture['customer'])
create_admin_user()
computer = mixer.blend('inventory.Computer', customer=mixer.SELECT)
client = Client()
client.login(username="novartis-admin", password="password")
response = client.get('/computer/1/')