From b4a2cc35921b951d150aa8312e549e171c4f1069 Mon Sep 17 00:00:00 2001 From: Erik Reid <erik.reid@geant.org> Date: Wed, 10 Apr 2019 12:21:34 +0200 Subject: [PATCH] flake8 --- test/test_opsdb_queries.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/test/test_opsdb_queries.py b/test/test_opsdb_queries.py index e190904c..bdb586cd 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) - -- GitLab