fixing name reuse in test

This commit is contained in:
Cayo Puigdefabregas 2021-10-01 11:42:31 +02:00
parent e30c6c2250
commit 7a43eaa30f
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ def test_recycling_container(user: UserClient):
@pytest.mark.mvp
def test_reuse(user: UserClient):
snap, _ = user.post(file('basic.snapshot'), res=models.Snapshot)
action = {'type': models.Reuse.t, 'devices': [snap['device']['id']]}
action = {'type': models.Use.t, 'devices': [snap['device']['id']]}
action, _ = user.post(action, res=models.Action)
device, _ = user.get(res=Device, item=snap['device']['devicehubID'])
assert device['actions'][-1]['id'] == action['id']