From 9ea6867edb528eda36dc77043522e4cfee9cb458 Mon Sep 17 00:00:00 2001 From: def Date: Sat, 27 Aug 2022 18:05:19 +0200 Subject: [PATCH] add return_value --- tests/test_graphql/test_api_storage.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_graphql/test_api_storage.py b/tests/test_graphql/test_api_storage.py index 59b46db..2573064 100644 --- a/tests/test_graphql/test_api_storage.py +++ b/tests/test_graphql/test_api_storage.py @@ -60,7 +60,7 @@ class BlockDevicesMockReturnFalse: @pytest.fixture def mock_block_device_return_none(mocker): mock = mocker.patch( - "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True + "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True, return_value=BlockDevicesMockReturnNone ) return mock @@ -68,7 +68,7 @@ def mock_block_device_return_none(mocker): @pytest.fixture def mock_block_device_return_true(mocker): mock = mocker.patch( - "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True + "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True, return_value=BlockDevicesMockReturnTrue ) return mock @@ -76,7 +76,7 @@ def mock_block_device_return_true(mocker): @pytest.fixture def mock_block_device_return_false(mocker): mock = mocker.patch( - "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True + "selfprivacy_api.graphql.mutations.storage_mutation.BlockDevices", autospec=True, return_value=BlockDevicesMockReturnFalse ) return mock