From 7a43eaa30fef40b2be7a01da5a7e630374ff395b Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 1 Oct 2021 11:42:31 +0200 Subject: [PATCH] fixing name reuse in test --- tests/test_action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_action.py b/tests/test_action.py index d0decb93..2ecb6faf 100644 --- a/tests/test_action.py +++ b/tests/test_action.py @@ -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']