aboutsummaryrefslogtreecommitdiffstats
path: root/moonv4/moon_db/tests
diff options
context:
space:
mode:
Diffstat (limited to 'moonv4/moon_db/tests')
-rw-r--r--moonv4/moon_db/tests/README.md35
-rw-r--r--moonv4/moon_db/tests/unit_python/conftest.py4
2 files changed, 2 insertions, 37 deletions
diff --git a/moonv4/moon_db/tests/README.md b/moonv4/moon_db/tests/README.md
deleted file mode 100644
index 73a9fcd2..00000000
--- a/moonv4/moon_db/tests/README.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# Tests
-
-## Python Unit Test for moon_db
-
-- launch Docker for Python unit tests
-
-
- cd ${MOON_HOME}/moonv4/moon_db/
- docker run -ti --volume ${PWD}:/data asteroide/moon_tests
-
-
-## Build and upload python packages
-
-- build python packages
-
-
- python setup.py sdist bdist_wheel
-
-
-- upload moon_db to PIP
-
-
- python setup.py upload
-
-
-or
-
-
- gpg --detach-sign -u "${GPG_ID}" -a dist/moon_db-X.Y.Z-py3-none-any.whl
- gpg --detach-sign -u "${GPG_ID}" -a dist/moon_db-X.Y.Z.tar.gz
- twine upload dist/moon_db-X.Y.Z-py3-none-any.whl dist/moon_db-X.Y.Z-py3-none-any.whl.asc
- twine upload dist/moon_db-X.Y.Z.tar.gz dist/moon_db-X.Y.Z.tar.gz.asc
-
-
-
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:///", ""))