diff options
author | 2017-12-14 12:06:42 +0000 | |
---|---|---|
committer | 2017-12-14 12:06:42 +0000 | |
commit | 30d8c92f1ae7c27934622cce8f5f7b393cc39e52 (patch) | |
tree | ee0df0c795bb6e505b32678de45e44232a874387 /moonv4/moon_db/tests/unit_python/conftest.py | |
parent | 277da07492c1440af5098c25f26b94739ddb41a8 (diff) | |
parent | 89cbd7d4b1b66afe25a0af13256f7b001f931dae (diff) |
Merge "Fix a bug in configuration of unit tests."
Diffstat (limited to 'moonv4/moon_db/tests/unit_python/conftest.py')
-rw-r--r-- | moonv4/moon_db/tests/unit_python/conftest.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/moonv4/moon_db/tests/unit_python/conftest.py b/moonv4/moon_db/tests/unit_python/conftest.py index 6cce944e..b9f38d7c 100644 --- a/moonv4/moon_db/tests/unit_python/conftest.py +++ b/moonv4/moon_db/tests/unit_python/conftest.py @@ -192,9 +192,9 @@ def set_consul_and_db(monkeypatch): "id": "1111111111111" }]} ) - from moon_db.db_manager import init_engine, run + from moon_db.db_manager import init_engine, main engine = init_engine() - run("upgrade", logging.getLogger("db_manager"), engine) + main("upgrade", logging.getLogger("db_manager"), engine) yield m os.unlink(CONF['database']['url'].replace("sqlite:///", "")) |