From b0d2df803a954c44ea14477a764c1771e10607d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Ingebrigtsen=20=C3=98vergaard?= Date: Wed, 29 Nov 2023 12:39:45 +0100 Subject: [PATCH] Use stricter mocks in web module test --- tests/fiaas_deploy_daemon/web/test_web.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/fiaas_deploy_daemon/web/test_web.py b/tests/fiaas_deploy_daemon/web/test_web.py index 1cf1ea20..a3abb997 100644 --- a/tests/fiaas_deploy_daemon/web/test_web.py +++ b/tests/fiaas_deploy_daemon/web/test_web.py @@ -11,12 +11,12 @@ @pytest.fixture def health_check(): - yield mock.create_autospec(HealthCheck) + yield mock.create_autospec(HealthCheck, spec_set=True) @pytest.fixture() def spec_factory(): - yield mock.create_autospec(SpecFactory) + yield mock.create_autospec(SpecFactory, spec_set=True) @pytest.fixture