Page MenuHomeSoftware Heritage

tests: add a CeleryTestFixture that allows to specify a celery broker URL
AbandonedPublic

Authored by douardda on Oct 12 2018, 10:14 AM.

Details

Reviewers
olasd
vlorentz
ardumont
Group Reviewers
Reviewers
Summary

this especially aims at allowing to run tests that do actually use
non mocked celery broker using pifpaf.

  • add celery to test requirements
  • README: document how to get test data
  • add a tox.ini file

and mention tox in the README file. Also note that this tox file will
clone swh-storage-testdata if needed.

Test Plan

tox will not work as is (dependency to swh-core) so pifpaf --env-prefix PG run postgresql -- pifpaf --env-prefix AMQP run rabbitmq nosetests

Diff Detail

Repository
rDSCH Scheduling utilities
Branch
test-cfg-celery-broker-w-pifpaf
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 1634
Build 1978: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Oct 12 2018, 4:10 PM

And i forgot to finish that review ;)

README.md
21

everything

36

should

Nice! Could you also add a result backend? I need this for D518

This revision now requires changes to proceed.Oct 15 2018, 9:34 AM

Nice! Could you also add a result backend? I need this for D518

let me see that

This diff has already landed as of 15e895e5df077208ed628172a9709ce1fdd0a8c4 but indeed, a better solution is needed as proposed in latest version of D531