Refactor extension tests to use less Mock()
Review Request #7909 — Created Jan. 25, 2016 and submitted — Latest diff uploaded
The extension tests now use a
ExtensionManager
subclass that provides
the entry points (which are faked via new utility classes,
FakeEntryPoint
, which mocks the entry point, andFakeDistribution
,
which mocks the distribution metadata) at initialization time. This
allows futher tests of extension managers to be more succinct and
robust.
Ran unit tests.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.
orig
1
2
djblets/extensions/tests.py |
---|