I added tests which were not currently a part of the Github Actions tests to the run_pytest.yml file in a recent PR.
However, one minor set of tests failed due to an odd import issue:
Traceback (most recent call last):
File "/home/runner/work/data-sources-app-v2/data-sources-app-v2/tests/test_schema_validation.py", line 6, in <module>
from middleware.enums import JurisdictionType
ModuleNotFoundError: No module named 'middleware.enums'
This runs successfully on my local machine (#WorksOnMyMachine). For the moment, I removed that test, as it was a minor one, but ideally we want to fix this so that this runs without error.
Requirements
Resolve the above error.
Re-add /test_schema_validation.py to the run_pytest.yml test suite
Tests
Ensure the tests import properly when run in the Github Action.
Context
I added tests which were not currently a part of the Github Actions tests to the
run_pytest.yml
file in a recent PR.However, one minor set of tests failed due to an odd import issue:
This runs successfully on my local machine (#WorksOnMyMachine). For the moment, I removed that test, as it was a minor one, but ideally we want to fix this so that this runs without error.
Requirements
/test_schema_validation.py
to therun_pytest.yml
test suiteTests
Docs
Open questions