Merge lp:~elopio/snapcraft/patcher into lp:~sergiusens/snapcraft/meta-all-yaml
Proposed by
Leo Arias
Status: | Merged |
---|---|
Merged at revision: | 142 |
Proposed branch: | lp:~elopio/snapcraft/patcher |
Merge into: | lp:~sergiusens/snapcraft/meta-all-yaml |
Diff against target: |
27 lines (+4/-6) 1 file modified
snapcraft/tests/test_meta.py (+4/-6) |
To merge this branch: | bzr merge lp:~elopio/snapcraft/patcher |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Schvezov | Pending | ||
Review via email: mp+269239@code.launchpad.net |
Commit message
Use patcher start and stop on cleanup.
To post a comment you must log in.
Approve
I don't know what I did wrong, but yay!
On Wed, Aug 26, 2015 at 1:08 PM, Leo Arias <email address hidden> wrote:
> Leo Arias has proposed merging lp:~elopio/snapcraft/patcher into /code.launchpad .net/~elopio/ snapcraft/ patcher/ +merge/ 269239 Message- Rationale: Reviewer Notification- Type: code-review snapcraft/ patcher tests/test_ meta.py' tests/test_ meta.py 2015-08-26 12:11:33 +0000 tests/test_ meta.py 2015-08-26 16:07:08 +0000 value=' binary. wrapped' ) snapcraft. meta._wrap_ exe') exe.return_ value = 'binary.wrapped' (patcher. stop) no_binaries_ or_services( self): package_ yaml(self. config_ data, ['armhf',
> lp:~sergiusens/snapcraft/meta-all-yaml.
>
> Commit message:
> Use patcher start and stop on cleanup.
>
> Requested reviews:
> Sergio Schvezov (sergiusens)
>
> For more details, see:
> https:/
> --
> You are requested to review the proposed merge of
> lp:~elopio/snapcraft/patcher into lp:~sergiusens/snapcraft/meta-all-yaml.
>
> Launchpad-
> Launchpad-
> Launchpad-Branch: ~elopio/
> Launchpad-Project: snapcraft
>
> === modified file 'snapcraft/
> --- snapcraft/
> +++ snapcraft/
> @@ -33,8 +33,10 @@
>
> def setUp(self):
> super().setUp()
> - self.orig_wrap_exe = meta._wrap_exe
> - meta._wrap_exe = Mock(return_
> + patcher = patch('
> + mock_wrap_exe = patcher.start()
> + mock_wrap_
> + self.addCleanup
>
> self.config_data = {
> 'name': 'my-package',
> @@ -42,10 +44,6 @@
> 'vendor': 'Sergio Schvezov <email address hidden>',
> }
>
> - def tearDown(self):
> - super().tearDown()
> - meta._wrap_exe = self.orig_wrap_exe
> -
> def test_plain_
>
> y = meta._compose_
> 'amd64'])
>
>
>