Merge lp://qastaging/~jtv/launchpad/bug-629442 into lp://qastaging/launchpad
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11499 |
Proposed branch: | lp://qastaging/~jtv/launchpad/bug-629442 |
Merge into: | lp://qastaging/launchpad |
Diff against target: |
70 lines (+18/-6) 2 files modified
lib/lp/testing/fakelibrarian.py (+7/-3) lib/lp/testing/tests/test_fakelibrarian.py (+11/-3) |
To merge this branch: | bzr merge lp://qastaging/~jtv/launchpad/bug-629442 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Brad Crittenden (community) | code | Approve | |
Review via email: mp+34539@code.qastaging.launchpad.net |
Commit message
FakeLibrarian.
Description of the change
= Bug 629442 =
Fixes the bug where FakeLibrarian.
Unlike the real librarian (and I mean, why!?) this does not involve creating a LibraryFileAlias, returning an id, then querying the database for the LibraryFileAlias with that id. I just made addFile and create both use the same private method that returns the LibraryFileAlias. (This seemed a bit cleaner than having the call relationship inverted compared to the real librarian and risking problems with future changes).
To test,
{{{
./bin/test -vvc lp.testing.
}}}
No lint.
Jeroen
Looks quite nice Jeroen.