Open rhliang opened 9 years ago
I recently had to deal with something similar in the MiCall pipeline, and I just added the parent directory to PYTHONPATH
when calling the code from a helper script that lives in a subdirectory. In my case, I was using the subprocess
module, but you can probably do something similar with sys.path
.
I'd like to consolidate them in a single place, either kive/tests.py or kive/testing_utils.py, but when I tried, the
update_test_fixtures
management command failed to run. Maybe it has to do with using a relative path?