mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
fix: address review comments
This commit is contained in:
parent
de97822be5
commit
c4c84ac403
2 changed files with 5 additions and 3 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue