lp://staging/~oubiwann/landscape-client/328990-mocker-hides-exception
- Get this branch:
- bzr branch lp://staging/~oubiwann/landscape-client/328990-mocker-hides-exception
Branch merges
Branch information
Recent revisions
- 53. By Duncan McGreggor
-
- Added a new unit test to check for a bug in mocker where the original
attribute gets swallowed by a subsequent exception check.
- Added a fix for the bug. - 52. By Gustavo Niemeyer
-
Moved the __mocker_mock__ cleaning up test from Patcher into its
own method around the Mocker.patch() tests. - 51. By Gustavo Niemeyer
-
Merging branch from Thomas which changes Mocker.patch() to use the
patcher when setting __mocker_mock__, rather than setting it in a
persistent way. - 50. By Gustavo Niemeyer
-
Prevent the MockerTestCase base from leaving the mocker in replay mode
while the base class run() method runs, since this might have additional
logic which touches mocked content (time.time() was one case). Thanks
to Thomas for the initial debugging. - 48. By Gustavo Niemeyer
-
When cleaning up on MockerTestCase, use reset() rather than restore(),
so that the same test case instance may be run more than once (like
Trial does). - 45. By Gustavo Niemeyer
-
Orderer() is now implemented based on may_run() instead of matches().
If the event is run with may_run() False, a nice assertion error is
raised with a nice debugging message. :-) - 44. By Gustavo Niemeyer
-
Introduced {Task,Event}
.may_run( ) to improve replaying ordering
logic. Now events which have may_run() true will be run before
events which don't.
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar RepositoryFormatKnitPack6 (bzr 1.9)