From eed341cdeaabbf767b90c94029b84e832cc25b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Ingebrigtsen=20=C3=98vergaard?= Date: Fri, 19 Apr 2024 15:17:49 +0200 Subject: [PATCH] Use real WatchEvent instance as event in watcher tests --- tests/k8s/test_watcher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/k8s/test_watcher.py b/tests/k8s/test_watcher.py index dbed2ea..54c066a 100644 --- a/tests/k8s/test_watcher.py +++ b/tests/k8s/test_watcher.py @@ -49,7 +49,7 @@ def _example_resource(_id, rv, namespace="default"): def _event(_id, event_type, rv, namespace="default"): wle = _example_resource(_id, rv, namespace) - return mock.NonCallableMagicMock(type=event_type, object=wle) + return WatchEvent(event_type, wle) def _assert_event(event, _id, event_type, rv, namespace="default"):