mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 06:17:25 +00:00
Merge branch 'fix/codescan/cyclic-imports' into fix/codescan/python-hygiene
# Conflicts: # cli/administration/deploy/development/down.py # cli/administration/deploy/development/inventory/__init__.py # tests/unit/python/utils/cache/test_base.py # tests/unit/python/utils/cache/test_data.py
This commit is contained in:
commit
989cd45f56
158 files changed
+1067
-645
No files matched your search
@@ -41,7 +41,7 @@ class TestCaTrustPaths(unittest.TestCase):
|
||||
)
|
||||
|
||||
def test_env_handler_exports_the_host_spot(self):
|
||||
from utils.env.builder import BuildContext, EnvBuilder
|
||||
from utils.env.context import BuildContext, EnvBuilder
|
||||
from utils.env.handlers.infinito.ca import cert_host as handler
|
||||
|
||||
eb = EnvBuilder()
|
||||
|
||||
@@ -6,7 +6,7 @@ from ansible.errors import AnsibleError
|
||||
|
||||
import utils.tls_common as _tls_common
|
||||
from plugins.lookup.cert import LookupModule
|
||||
from utils.cache import _reset_cache_for_tests
|
||||
from utils.cache.reset import _reset_cache_for_tests
|
||||
|
||||
sys.modules.setdefault("ansible.module_utils.tls_common", _tls_common)
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ from pathlib import Path
|
||||
from ansible.errors import AnsibleError
|
||||
|
||||
from plugins.lookup.config import LookupModule
|
||||
from utils.cache import _reset_cache_for_tests
|
||||
from utils.cache import base as cache_base
|
||||
from utils.cache.reset import _reset_cache_for_tests
|
||||
from utils.cache.yaml import dump_yaml_str
|
||||
from utils.roles.applications.config import AppConfigKeyError, ConfigEntryNotSetError
|
||||
from utils.roles.mapping import (
|
||||
|
||||
@@ -12,11 +12,11 @@ from ansible.errors import AnsibleError
|
||||
|
||||
from plugins.lookup.applications import LookupModule as ApplicationsLookup
|
||||
from plugins.lookup.email import RESOLUTION_ORDER, LookupModule, provider_view_carrier
|
||||
from utils.cache import _reset_cache_for_tests
|
||||
from utils.cache import applications as cache_applications
|
||||
from utils.cache import base as cache_base
|
||||
from utils.cache import users as cache_users
|
||||
from utils.cache import tokens as cache_tokens
|
||||
from utils.cache.carrier import APPLICATIONS_RENDERED_FACT, PROVIDER_VIEW_RENDERED_FACT
|
||||
from utils.cache.reset import _reset_cache_for_tests
|
||||
from utils.cache.yaml import dump_yaml_str
|
||||
from utils.roles.mapping import ROLE_FILE_META_DOMAINS, ROLE_FILE_META_SERVICES
|
||||
|
||||
@@ -43,7 +43,7 @@ class TestEmailLookup(unittest.TestCase):
|
||||
(self._tmp / "roles").mkdir(parents=True, exist_ok=True)
|
||||
os.chdir(self._tmp)
|
||||
self._tokens_store_patcher = patch.object(
|
||||
cache_users, "_load_store_users", return_value={}
|
||||
cache_tokens, "load_store_users", return_value={}
|
||||
)
|
||||
self._tokens_store_patcher.start()
|
||||
|
||||
@@ -472,7 +472,7 @@ class TestProviderOnionIsClusterWide(unittest.TestCase):
|
||||
(self._tmp / "roles").mkdir(parents=True, exist_ok=True)
|
||||
os.chdir(self._tmp)
|
||||
self._tokens_store_patcher = patch.object(
|
||||
cache_users, "_load_store_users", return_value={}
|
||||
cache_tokens, "load_store_users", return_value={}
|
||||
)
|
||||
self._tokens_store_patcher.start()
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ from plugins.lookup.tor_ports import (
|
||||
collect_exposed_ports,
|
||||
collect_onion_ports,
|
||||
)
|
||||
from utils.cache import _reset_cache_for_tests
|
||||
from utils.cache.reset import _reset_cache_for_tests
|
||||
from utils.cache.yaml import dump_yaml_str
|
||||
from utils.roles.mapping import ROLE_FILE_META_SERVICES
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from pathlib import Path
|
||||
from ansible.errors import AnsibleError
|
||||
|
||||
from plugins.lookup.tor_reachable import LookupModule, is_reachable
|
||||
from utils.cache import _reset_cache_for_tests
|
||||
from utils.cache.reset import _reset_cache_for_tests
|
||||
from utils.cache.yaml import dump_yaml_str
|
||||
from utils.roles.mapping import ROLE_FILE_META_SERVICES
|
||||
|
||||
|
||||
Reference in new issue
Block a user