Merge lp:~bjornt/landscape-client/apt-facade-remaining-tests into lp:~landscape/landscape-client/trunk
Proposed by
Björn Tillenius
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Frank Wierzbicki | ||||||||
Approved revision: | 404 | ||||||||
Merged at revision: | 405 | ||||||||
Proposed branch: | lp:~bjornt/landscape-client/apt-facade-remaining-tests | ||||||||
Merge into: | lp:~landscape/landscape-client/trunk | ||||||||
Diff against target: |
63 lines (+14/-3) 3 files modified
landscape/package/facade.py (+2/-0) landscape/package/tests/test_facade.py (+10/-0) landscape/package/tests/test_releaseupgrader.py (+2/-3) |
||||||||
To merge this branch: | bzr merge lp:~bjornt/landscape-client/apt-facade-remaining-tests | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Frank Wierzbicki (community) | Approve | ||
Thomas Herve (community) | Approve | ||
Review via email: mp+82263@code.launchpad.net |
Description of the change
Make sure that ReleaseUpgrader and PackageTaskHandler tests can be run
with AptFacade instead of SmartFacade.
For ReleaseUpgrader I simply remove the setup of a facade, since the
facade isn't used by ReleaseUpgrader.
For PackageTaskHandler I made a change to AptFacade to be able to set
the architecture to None. This makes the PackageTaskHandler tests pass,
if I change them to use AptFacadeHelper instead of SmartFacadeHelper.
I didn't bother actually running the tests for both SmartFacade and
AptFacade, since the changes are minimal. When the time comes to remove
SmartFacade we can change it to use AptFacadeHelper, without changing
anything else.
To post a comment you must log in.
Looks good, +1.