Page MenuHomeSoftware Heritage

celery/tests: mostly revert e770eb30 to fix celery app initialization in tests

Authored by douardda on Oct 18 2019, 4:45 PM.



This revision did fix tests for the scheduler itself, but broke all other
tests of scheduler dependent swh packages.

In this fix, we ensure we override the app in
swh.scheduler.celery_backend.config, since it is used by all
celery task declarations (via the @app.task() decorator).

Diff Detail

rDSCH Scheduling utilities
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Oct 18 2019, 4:45 PM
ardumont accepted this revision.Oct 18 2019, 6:33 PM
This revision is now accepted and ready to land.Oct 18 2019, 6:33 PM
This revision was landed with ongoing or failed builds.Oct 19 2019, 11:42 AM
This revision was automatically updated to reflect the committed changes.