@@ -20,9 +20,9 @@ def random_hex(len=6):
2020@pytest .mark .skipif (
2121 not all (
2222 [
23- os .getenv ('INFLUX_DB3_LOCAL_HOST ' ),
24- os .getenv ('INFLUX_DB3_LOCAL_TOKEN ' ),
25- os .getenv ('INFLUX_DB3_LOCAL_DATABASE ' ),
23+ os .getenv ('TESTING_INFLUXDB_URL ' ),
24+ os .getenv ('TESTING_INFLUXDB_TOKEN ' ),
25+ os .getenv ('TESTING_INFLUXDB_DATABASE ' ),
2626 ]
2727 ),
2828 reason = "Integration test environment variables not set." ,
@@ -34,9 +34,9 @@ def inject_fixtures(self, caplog):
3434 self ._caplog = caplog
3535
3636 def setUp (self ):
37- self .host = os .getenv ('INFLUX_DB3_LOCAL_HOST ' )
38- self .token = os .getenv ('INFLUX_DB3_LOCAL_TOKEN ' )
39- self .database = os .getenv ('INFLUX_DB3_LOCAL_DATABASE ' )
37+ self .host = os .getenv ('TESTING_INFLUXDB_URL ' )
38+ self .token = os .getenv ('TESTING_INFLUXDB_TOKEN ' )
39+ self .database = os .getenv ('TESTING_INFLUXDB_DATABASE ' )
4040 self .client = InfluxDBClient3 (host = self .host , database = self .database , token = self .token )
4141
4242 def tearDown (self ):
@@ -76,16 +76,6 @@ def test_auth_error_auth_scheme(self):
7676 '\' Authorization: <auth-scheme> <token>\' , supported auth-schemes are Bearer, Token and Basic' ,
7777 err .exception .message ) # Cloud
7878
79- def test_error_headers (self ):
80- self .client = InfluxDBClient3 (host = self .host , database = self .database , token = self .token )
81- with self .assertRaises (InfluxDBError ) as err :
82- self .client .write ("integration_test_python,type=used value=123.0,test_id=" )
83- self .assertIn ("Could not parse entire line. Found trailing content:" , err .exception .message )
84- headers = err .exception .getheaders ()
85- print ("SONN" )
86- print (headers )
87- self .assertIsNotNone (headers )
88-
8979 def test_batch_write_callbacks (self ):
9080 write_success = False
9181 write_error = False
0 commit comments