Merge lp:~jtv/launchpad/bug-629442 into lp:launchpad
| Status: | Merged |
|---|---|
| Approved by: | Jeroen T. Vermeulen on 2010-09-03 |
| Approved revision: | no longer in the source branch. |
| Merged at revision: | 11499 |
| Proposed branch: | lp:~jtv/launchpad/bug-629442 |
| Merge into: | lp: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:~jtv/launchpad/bug-629442 |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Brad Crittenden (community) | code | 2010-09-03 | Approve on 2010-09-03 |
|
Review via email:
|
|||
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.