Skip to content

Commit aa33472

Browse files
committed
Added support for INFLUXDB_PYTHON_SKIP_SERVER_TESTS
1 parent d344299 commit aa33472

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

influxdb/tests/server_tests/influxdb_instance.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ def __init__(self,
2424
conf_template,
2525
udp_enabled=False):
2626

27+
if os.environ.get("INFLUXDB_PYTHON_SKIP_SERVER_TESTS", None) == 'True':
28+
raise unittest.SkipTest(
29+
"Skipping server test (INFLUXDB_PYTHON_SKIP_SERVER_TESTS)"
30+
)
31+
2732
self.influxd_path = self.find_influxd_path()
2833

2934
# create a temporary dir to store all needed files

0 commit comments

Comments
 (0)