test_task: Mark it to be ignore during debian build
- Add pytest.mark.db
- test_tasks: Unify mocking using pytest-mock fixture
- test: Add checks scenario test cases
Mainly to ensure coverage increase. Hopefully, this also helps the debian build (with the pytest.mark.db...)
Test Plan
tox
Migrated from D3133 (view on Phabricator)