From 90be9a956bfe3a29e745fdfafd462f9710724877 Mon Sep 17 00:00:00 2001 From: Jiri Konecny Date: Mon, 7 Nov 2022 13:21:31 +0100 Subject: [PATCH] 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: bcf88661d94dbcdb04c3b282b57c0474d3c500be Related to: RHEL-58212 --- tests/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/tests.yml b/tests/tests.yml index ca81510..c741e07 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -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"