lp:~jkakar/launchpadlib/testing-support
Created by
Jamu Kakar
and last modified
- Get this branch:
- bzr branch lp:~jkakar/launchpadlib/testing-support
Only
Jamu Kakar
can upload to this branch. If you are
Jamu Kakar
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
Rejected
for merging
into
lp:launchpadlib
- Leonard Richardson (community): Disapprove
-
Diff: 28362 lines6 files modified.bzrignore (+2/-0)
Makefile (+5/-0)
src/launchpadlib/testing/launchpad-wadl.xml (+27425/-0)
src/launchpadlib/testing/launchpad.py (+455/-0)
src/launchpadlib/testing/resources.py (+46/-0)
src/launchpadlib/testing/tests/test_launchpad.py (+394/-0)
Related bugs
Bug #474791: Applications written with launchpadlib are hard to test | High | Fix Committed |
Related blueprints
Branch information
Recent revisions
- 63. By Jamu Kakar
-
- AttributeError is raised if a property is accessed on FakeResource
that has never been set.
- Added a test to ensure that methods can be replaced.
- Added a test to ensure that an empty dict can be used as a sample
resource. - 61. By Jamu Kakar
-
- Added a heuristic so that subscripting works as expected.
- FakeResource has a custom __repr__ to make it easier to debug fake
objects. - 60. By Jamu Kakar
-
- IndexError is raised if an invalid index is used when subscripting
a fake collection. - 59. By Jamu Kakar
-
- New FakeCollection.
__getitem_ _ method supports item lookup and has
limited slicing support, similar to how collection behave with the
real Launchpad.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar RepositoryFormatKnitPack6 (bzr 1.9)
- Stacked on:
- lp:launchpadlib