Install subpackages for running tests #26
-
I am trying to run all tests in the project from PyCharm. Due to the not-so-common source code layout, I am having trouble to inform PyCharm about the mappings declared in Could you guide what's required to run the tests? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
You can install the library as a PTH-file (similar to a sym-link or the "editable" setup in
Keep in mind that some subpackages depend on others, to ensure that they aren't pulled from PyPI you must install the subpackages in the correct order: Refer to the test workflow inside of |
Beta Was this translation helpful? Give feedback.
You can install the library as a PTH-file (similar to a sym-link or the "editable" setup in
setuptools
).Setup a virtual environment and activate it
Install
flit
from PyPI withpip install flit
Navigate into each subpackage and run
flit install --pth-file
Keep in mind that some subpackages depend on others, to ensure that they aren't pulled from PyPI you must install the subpackages in the correct order:
wumpy-gateway
,wumpy-rest
,wumpy-models
,wumpy-cache
and lastlywumpy-bot
.Refer to the test workflow inside of
.github/
to see how it sets up the subpackages for the tests.