Moved config initialize to start of test_cloud.py to solve bug in testing

This commit is contained in:
danielsagi
2022-05-07 10:22:17 +03:00
parent 585b490f19
commit ebd8e2e405
+2 -1
View File
@@ -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.