Skip to content

Commit 5293525

Browse files
authored
changed test imports to match GMT changes
1 parent a529dad commit 5293525

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/conftest.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,10 @@
22
import sys
33
import pytest
44

5-
current_dir = os.path.dirname(os.path.abspath(__file__))
6-
sys.path.append(f"{current_dir}/../../green-metrics-tool/lib")
7-
85
## VERY IMPORTANT to override the config file here
96
## otherwise it will automatically connect to non-test DB and delete all your real data
10-
from global_config import GlobalConfig
11-
from db import DB
7+
from lib.global_config import GlobalConfig
8+
from lib.db import DB
129
GlobalConfig().override_config(config_name='test-config.yml')
1310

1411
def pytest_addoption(parser):
@@ -35,4 +32,4 @@ def cleanup_after_test():
3532
# from conftest import cleanup_after_test
3633
# @pytest.fixture(autouse=False) # Set autouse to False to override the fixture
3734
# def cleanup_after_test():
38-
# pass
35+
# pass

0 commit comments

Comments
 (0)