Fix relative imports in the tests

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

Cherry-picked from: bcf88661d9

Related to: RHEL-58212
This commit is contained in:
Jiri Konecny 2022-11-07 13:21:31 +01:00 committed by Katerina Koukiou
parent f58158c2d6
commit 90be9a956b

View File

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