File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 22import sys
33import 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
129GlobalConfig ().override_config (config_name = 'test-config.yml' )
1310
1411def 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
You can’t perform that action at this time.
0 commit comments