Merge lp:~robru/friends/testmode into lp:friends
Proposed by
Robert Bruce Park
Status: | Merged |
---|---|
Merged at revision: | 124 |
Proposed branch: | lp:~robru/friends/testmode |
Merge into: | lp:friends |
Prerequisite: | lp:~robru/friends/dbus-invocation |
Diff against target: |
245 lines (+179/-17) 5 files modified
friends/main.py (+4/-0) friends/service/mock_service.py (+105/-0) friends/tests/test_mock_dispatcher.py (+65/-0) friends/tests/test_model.py (+1/-17) friends/utils/options.py (+4/-0) |
To merge this branch: | bzr merge lp:~robru/friends/testmode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ken VanDine | Pending | ||
Review via email: mp+146326@code.launchpad.net |
Commit message
Reintroduce --test mode, with mock dbus API and test coverage.
Description of the change
Bring back --test mode, this time with a full dbus API that accepts callbacks and the whole deal, acceptable for use as a mock within the libfriends testsuite.
Best part is that I included a test case that ensures the mock has the identical dbus API interface, including identical in/out signatures, as the real Dispatcher... so if in the future somebody changes our dbus API, the testsuite will politely remind them to update the mock, too.
To post a comment you must log in.