diff --git a/tests/test_upload.py b/tests/test_upload.py index 2c9c0b53def2f6efe69fa401cd827ec1d5720b1a..55ef1444596e726968ad315c5c24383313a75863 100644 --- a/tests/test_upload.py +++ b/tests/test_upload.py @@ -31,4 +31,9 @@ def test_load_conf(): def test_init_from_env(): setup_env() - Uploader() + up = Uploader() + assert up.config.host == os.environ["INFLUXDB_HOST"] + assert up.config.port == os.environ["INFLUXDB_PORT"] + assert up.config.user_name == os.environ["INFLUXDB_USER_NAME"] + assert up.config.database == os.environ["INFLUXDB_DATABASE"] + assert up.config.write_user_pw == os.environ["INFLUXDB_WRITE_USER_PASSWORD"]