Merge lp:~abentley/lazr.jobrunner/fix-celeryd-tests into lp:lazr.jobrunner
Proposed by
Aaron Bentley
on 2012-03-26
| Status: | Merged |
|---|---|
| Merged at revision: | 24 |
| Proposed branch: | lp:~abentley/lazr.jobrunner/fix-celeryd-tests |
| Merge into: | lp:lazr.jobrunner |
| Diff against target: |
13 lines (+1/-2) 1 file modified
src/lazr/jobrunner/tests/test_celerytask.py (+1/-2) |
| To merge this branch: | bzr merge lp:~abentley/lazr.jobrunner/fix-celeryd-tests |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Deryck Hodge (community) | 2012-03-26 | Approve on 2012-03-26 | |
|
Review via email:
|
|||
Commit Message
Fix celeryd tests by declaring file_job as class variable
Description of the Change
This branch fixes the celeryd tests, which use FileJob. RunFileJob instances require file_job_dir to be set correctly, which is done for celeryd using CELERY_ANNOTATIONS. This mechanism sets class variables, not instance variables. My recent landings provided file_job_dir as an instance variable, so it overrode the value set by CELERY_ANNOTATIONS. This branch fixes the tests by declaring file_job_dir as a class variable.
To post a comment you must log in.
review:
Approve
