No "nice" way to run tests
Bug #893563 reported by
Jonathan Lange
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pkgme service |
Fix Released
|
High
|
James Westby |
Bug Description
If we want pkgme-binary to be a dependency of pkgme-service, and we wish to actually trigger a run of the backend from the tests (as in lp:~jml/pkgme-service/actually-run-pkgme) then we need to run the tests in a virtualenv. "fab test" does *not* do that by default, instead running the tests using the Python that is inside the virtualenv and hoping for the best. If you active the virtualenv and run "fab test" inside it, the tests run but bzr does not work, so it's not great for rapid test->edit-
$ bzr st
cannot import name get_trees_
cannot import name info
Changed in pkgme-service: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in pkgme-service: | |
assignee: | nobody → James Westby (james-w) |
status: | Triaged → Fix Released |
To post a comment you must log in.
We could have pkgme setup PYTHONPATH to mirror sys.path when running an external script.
That would allow the virtualenv to propogate down.
I don't think it's too distasteful.
Thanks,
James