fix: address review comments

This commit is contained in:
Cesar Augusto Sanchez 2022-10-05 15:14:15 -04:00 committed by Gareth J. Greenaway
parent de97822be5
commit c4c84ac403
2 changed files with 5 additions and 3 deletions

View file

@ -97,7 +97,6 @@ import logging
import re
import ssl
import salt.loader.context
import salt.utils.json
import salt.utils.versions
from salt.exceptions import CommandExecutionError
@ -140,8 +139,6 @@ try:
except ImportError:
pass
__salt_loader__ = salt.loader.context.LoaderContext()
__context__ = __salt_loader__.named_context("__context__", {})
LOAD_BALANCING_POLICY_MAP = {
"HostDistance": HostDistance,

View file

@ -14,6 +14,11 @@ from tests.support.mock import MagicMock, patch
log = logging.getLogger(__name__)
@pytest.fixture
def configure_loader_modules():
return {cql: {"__context__": {}}}
def test_cql_query(caplog):
"""
Test salt.modules.cassandra_cql.cql_query function