Fix relative imports in the tests

Enable tests to load source files in the `units` directory by starting
the discover a one level above.

Related: rhbz#2134889
This commit is contained in:
Jiri Konecny 2022-11-07 13:21:31 +01:00
parent c198f7deee
commit bcf88661d9
No known key found for this signature in database
GPG Key ID: 38F52F0E5C3FAD25

View File

@ -17,6 +17,6 @@
dir: . dir: .
run: /usr/libexec/platform-python -c "import simpleline" run: /usr/libexec/platform-python -c "import simpleline"
- unit: - unit:
dir: ./source/tests/units dir: ./source/tests
run: /usr/libexec/platform-python -m unittest discover -v -p "*_test.py" run: /usr/libexec/platform-python -m unittest discover -v -p "*_test.py"