-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Dear,
I am getting few errors when trying to run the test:
It seems there is a few files and directory missing : Directory 'dist/assets' does not exist.
I created this locally and mounted it in the test docker-compose files but it did not fixed the issues.
(I tried to fix it by adding in both containers : integration_test and web_test, the following volumes.
volumes:
- ./tests/dist/assets:/dist/assets
Any guidance will be welcome, thank you.
Here are the errors:
integration_test_1 | ==================================== ERRORS ====================================
integration_test_1 | ____________________ ERROR collecting tests/test_handler.py ____________________
integration_test_1 | tests/test_handler.py:9: in
integration_test_1 | import server
integration_test_1 | web/app/server.py:50: in
integration_test_1 | app.mount("/assets", StaticFiles(directory=os.path.join("dist", "assets")), name="assets")
integration_test_1 | /usr/local/lib/python3.10/site-packages/starlette/staticfiles.py:56: in init
integration_test_1 | raise RuntimeError(f"Directory '{directory}' does not exist")
integration_test_1 | E RuntimeError: Directory 'dist/assets' does not exist
integration_test_1 | =========================== short test summary info ============================
integration_test_1 | ERROR tests/test_handler.py - RuntimeError: Directory 'dist/assets' does not ...
integration_test_1 | !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
integration_test_1 | =============================== 1 error in 2.26s ===============================
web_test_1 | collected 0 items / 1 error
web_test_1 | /usr/local/lib/python3.10/site-packages/coverage/inorout.py:508: CoverageWarning: Module /myapp/core/app was never imported. (module-not-imported)
web_test_1 | self.warn(f"Module {pkg} was never imported.", slug="module-not-imported")
influencemapper-service_integration_test_1 exited with code 2
web_test_1 |
web_test_1 | ==================================== ERRORS ====================================
web_test_1 | __________________ ERROR collecting web/tests/test_publish.py __________________
web_test_1 | web/tests/test_publish.py:9: in
web_test_1 | import server
web_test_1 | web/app/server.py:50: in
web_test_1 | app.mount("/assets", StaticFiles(directory=os.path.join("dist", "assets")), name="assets")
web_test_1 | /usr/local/lib/python3.10/site-packages/starlette/staticfiles.py:56: in init
web_test_1 | raise RuntimeError(f"Directory '{directory}' does not exist")
web_test_1 | E RuntimeError: Directory 'dist/assets' does not exist
web_test_1 | =========================== short test summary info ============================
web_test_1 | ERROR web/tests/test_publish.py - RuntimeError: Directory 'dist/assets' does ...
web_test_1 | !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
web_test_1 | =============================== 1 error in 2.54s ===============================