Skip to content

Commit 0ba7f59

Browse files
committed
ci: fix unittest discover to use top-level-directory for package imports
The test_aiohttp_adapter module uses a relative import (.aio.aiohttp_adapter_test). Without --top-level-directory ., unittest discover imports test files as top-level modules rather than as members of the pusher_tests package, breaking relative imports.
1 parent cfb4e2e commit 0ba7f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
run: pip install -r requirements.txt
2929

3030
- name: Run test suite
31-
run: python -m unittest discover -s pusher_tests
31+
run: python -m unittest discover -s pusher_tests --top-level-directory .

0 commit comments

Comments
 (0)