Merge lp://qastaging/~elopio/snapcraft/base_plugin_tests into lp://qastaging/~snappy-dev/snapcraft/core

Proposed by Leo Arias
Status: Merged
Approved by: Michael Terry
Approved revision: 125
Merged at revision: 119
Proposed branch: lp://qastaging/~elopio/snapcraft/base_plugin_tests
Merge into: lp://qastaging/~snappy-dev/snapcraft/core
Diff against target: 202 lines (+129/-10)
5 files modified
debian/control (+2/-0)
snapcraft/__init__.py (+1/-4)
snapcraft/common.py (+1/-1)
snapcraft/tests/__init__.py (+2/-1)
snapcraft/tests/test_base_plugin.py (+123/-4)
To merge this branch: bzr merge lp://qastaging/~elopio/snapcraft/base_plugin_tests
Reviewer Review Type Date Requested Status
Michael Terry (community) Approve
Review via email: mp+266896@code.qastaging.launchpad.net

Commit message

Added unit tests for the base plugin.
Added python3-testscenarios and wget as a dependency.

Description of the change

The important parts of this branch are:
- added a simple local server to test downloads.
- added test scenarios to simplify repetitive unit tests. (already installed in tarmac.)

Once I put this into test I found a bug I introduced by leaving the argument in the fatal function.
I also simplified the makedirs method.

To post a comment you must log in.
122. By Leo Arias

Added tests for makedirs.

123. By Leo Arias

Added testscenarios to the debian deps.

Revision history for this message
Michael Terry (mterry) wrote :

Looks great, thanks, especially the fatal() typo fix! :)

But you'll want to add wget to Build-Depends too (we didn't use it during tests before).

review: Needs Fixing
124. By Leo Arias

Added wget to the test deps.

125. By Leo Arias

Merged with trunk.

Revision history for this message
Michael Terry (mterry) wrote :

Beautiful!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches

to all changes: