From ebd8e2e40546a74658739a4b0bda3937fa4b1c2a Mon Sep 17 00:00:00 2001 From: danielsagi Date: Fri, 6 May 2022 23:46:46 -0700 Subject: [PATCH] Moved config initialize to start of test_cloud.py to solve bug in testing --- tests/core/test_cloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/core/test_cloud.py b/tests/core/test_cloud.py index 04cb5da..2e9354c 100644 --- a/tests/core/test_cloud.py +++ b/tests/core/test_cloud.py @@ -2,10 +2,11 @@ import requests_mock import json from kube_hunter.conf import Config, set_config -from kube_hunter.core.events.types import NewHostEvent set_config(Config()) +from kube_hunter.core.events.types import NewHostEvent + def test_presetcloud(): """Testing if it doesn't try to run get_cloud if the cloud type is already set.