Add tests for github tasks
in order to be able to run unit tests using celery pytest fixtures, we use a dedicated swh_app fixture that ensure the "main" celery app is the test app (otherwise subtasks won't work).
Showing
- swh/lister/core/tests/conftest.py 23 additions, 0 deletionsswh/lister/core/tests/conftest.py
- swh/lister/github/tasks.py 4 additions, 2 deletionsswh/lister/github/tasks.py
- swh/lister/github/tests/conftest.py 1 addition, 0 deletionsswh/lister/github/tests/conftest.py
- swh/lister/github/tests/test_tasks.py 90 additions, 0 deletionsswh/lister/github/tests/test_tasks.py
swh/lister/core/tests/conftest.py
0 → 100644
swh/lister/github/tests/conftest.py
0 → 100644
swh/lister/github/tests/test_tasks.py
0 → 100644
Please register or sign in to comment