add a computer object to the test
This commit is contained in:
parent
6c4966b6d8
commit
005b521be7
|
@ -17,7 +17,8 @@ def test_customer_backup_table(create_admin_user):
|
|||
customer = fixture['customer']
|
||||
client = Client()
|
||||
client.login(username="novartis-admin", password="password")
|
||||
backup = mixer.blend('inventory.Backup', customer=mixer.SELECT)
|
||||
computer = mixer.blend('inventory.Computer', customer=customer)
|
||||
backup = mixer.blend('inventory.Backup', computer=computer)
|
||||
response = client.get('/customer/' + str(customer.id) + '/backups/')
|
||||
assert response.status_code == 200 and in_content(response, backup.name)
|
||||
|
||||
|
|
Loading…
Reference in New Issue