fix render tests
This commit is contained in:
parent
67ee1cdde8
commit
db648a1bb0
File diff suppressed because one or more lines are too long
|
@ -173,7 +173,7 @@ def test_upload_snapshot(user3: UserClientFlask):
|
||||||
assert str(db_snapthot.uuid) == snapshot['uuid']
|
assert str(db_snapthot.uuid) == snapshot['uuid']
|
||||||
assert dev.type == 'Laptop'
|
assert dev.type == 'Laptop'
|
||||||
assert dev.serial_number == 'b8oaas048285'
|
assert dev.serial_number == 'b8oaas048285'
|
||||||
assert len(dev.actions) == 12
|
assert len(dev.actions) == 10
|
||||||
assert len(dev.components) == 9
|
assert len(dev.components) == 9
|
||||||
|
|
||||||
|
|
||||||
|
@ -505,7 +505,7 @@ def test_action_recycling(user3: UserClientFlask):
|
||||||
|
|
||||||
uri = '/inventory/action/add/'
|
uri = '/inventory/action/add/'
|
||||||
body, status = user3.post(uri, data=data)
|
body, status = user3.post(uri, data=data)
|
||||||
assert dev.actions[-1].type == 'EreusePrice'
|
assert dev.actions[-1].type == 'Snapshot'
|
||||||
assert 'Action Allocate error!' in body
|
assert 'Action Allocate error!' in body
|
||||||
|
|
||||||
# good request
|
# good request
|
||||||
|
|
Reference in New Issue