Merge lp:~jtv/launchpad/fakelibrarian-commit into lp:launchpad
Proposed by
Jeroen T. Vermeulen
on 2010-08-22
| Status: | Merged |
|---|---|
| Approved by: | Jeroen T. Vermeulen on 2010-08-24 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11420 |
| Proposed branch: | lp:~jtv/launchpad/fakelibrarian-commit |
| Merge into: | lp:launchpad |
| Diff against target: |
54 lines (+23/-3) 2 files modified
lib/lp/testing/fakelibrarian.py (+14/-3) lib/lp/testing/tests/test_fakelibrarian.py (+9/-0) |
| To merge this branch: | bzr merge lp:~jtv/launchpad/fakelibrarian-commit |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Abel Deuring (community) | code | Approve on 2010-08-24 | |
| Robert Collins | code | 2010-08-22 | Pending |
|
Review via email:
|
|||
Commit Message
FakeLibrarian.
Description of the Change
= FakeLibrarian commit =
The FakeLibrarian is a usable substitute for the Librarian in tests that only need the librarian inside their own process. Like the real Librarian, the FakeLibrarian makes a file available only after you commit the transaction that added it.
This branch adds a "fake commit" method to the fake librarian. The fake commit allows tests to add files to the fake librarian and continue using them as if there had been a commit—but without incurring a database commit. Commits in tests can be quite costly because they make it necessary to restore a pristine test database for the next test.
To post a comment you must log in.
review:
Approve
(code)
