diff --git a/test/test_opsdb_queries.py b/test/test_opsdb_queries.py index e190904c2e04fdbc43ca50b107c587db200b7948..bdb586cd146d73e41e6123fec687a862c6dcd929 100644 --- a/test/test_opsdb_queries.py +++ b/test/test_opsdb_queries.py @@ -10,7 +10,7 @@ pytestmark = pytest.mark.skipif( reason='TEST_OPSDB_HOSTNAME environment variable not found') pytestmark = pytest.mark.skipif( 'TEST_OPSDB_DBNAME' not in os.environ, - reason = 'TEST_OPSDB_DBNAME environment variable not found') + reason='TEST_OPSDB_DBNAME environment variable not found') pytestmark = pytest.mark.skipif( 'TEST_OPSDB_USERNAME' not in os.environ, reason='TEST_OPSDB_USERNAME environment variable not found') @@ -18,13 +18,6 @@ pytestmark = pytest.mark.skipif( 'TEST_OPSDB_PASSWORD' not in os.environ, reason='TEST_OPSDB_PASSWORD environment variable not found') -DB_PARAMS = { - "hostname": "test-opsdb02.geant.net", - # "hostname": "prod-opsdb01.geant.net", - "dbname": "opsdb", - "username": "opsro", - "password": "opsro" -} @pytest.fixture def db_params(): @@ -38,7 +31,7 @@ def db_params(): @pytest.fixture def connection(db_params): - with db.connection(DB_PARAMS) as c: + with db.connection(db_params) as c: yield c @@ -53,4 +46,3 @@ def test_query(connection, equipment, card, port): from pprint import pprint pprint(circuit) -