Skip to content

Commit dfb4aed

Browse files
committed
test: add splunk's module patch
1 parent 7cd7a9c commit dfb4aed

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/integration/context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def get_session_key():
4040
def mock_splunk(monkeypatch):
4141
def simple_requests(url, *args, **kwargs):
4242
from splunk.rest import simpleRequest
43+
4344
return simpleRequest(url, *args, **kwargs)
4445

45-
monkeypatch.setattr("solnlib.splunkenv.simpleRequest", simple_requests)
46+
monkeypatch.setattr("solnlib.splunkenv.simpleRequest", simple_requests)

tests/integration/test_conf_manager.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,9 @@
1616

1717
import context
1818
import pytest
19-
import sys
20-
import os.path as op
21-
import os
2219
from solnlib import conf_manager, soln_exceptions
2320
from unittest import mock
2421

25-
if sys.version_info < (3, 9, 0):
26-
sys.path.insert(0, op.sep.join([os.getenv("SPLUNK_HOME"), "lib", "python3.7", "site-packages"]))
27-
else:
28-
sys.path.insert(0, op.sep.join([os.getenv("SPLUNK_HOME"), "lib", "python3.9", "site-packages"]))
29-
from splunk.rest import simpleRequest
30-
3122

3223
VALID_PROXY_DICT = {
3324
"proxy_enabled": None,

0 commit comments

Comments
 (0)