Skip to content

Commit 012e6c5

Browse files
committed
test: added splunk to sys.path
1 parent b069211 commit 012e6c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/integration/test_conf_manager.py

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

1717
import context
1818
import pytest
19+
import sys
20+
import os.path as op
21+
import os
1922
from solnlib import conf_manager, soln_exceptions
2023
from unittest import mock
2124

25+
sys.path.insert(0, op.sep.join([os.getenv("SPLUNK_HOME"), "lib", "python3.7", "site-packages"]))
26+
sys.path.insert(0, op.sep.join([os.getenv("SPLUNK_HOME"), "lib", "python3.9", "site-packages"]))
27+
from splunk.rest import simpleRequest
28+
2229

2330
VALID_PROXY_DICT = {
2431
"proxy_enabled": None,

0 commit comments

Comments
 (0)