Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repos: fix returned strings for install_stage_packages() #3047

Merged
merged 1 commit into from Apr 17, 2020

Conversation

cjp256
Copy link
Contributor

@cjp256 cjp256 commented Apr 16, 2020

Instead of returning <package>=<version>, it was returning
<package>=<apt.Version>. Resolve the version string which
is the intended return value.

Fix unit tests to cover this. Switch to using PropertyMocks,
as the MagicMock(wraps=...) did not work as I had expected.

LP #1873349

Signed-off-by: Chris Patterson chris.patterson@canonical.com

  • Have you followed the guidelines for contributing?
  • Have you signed the CLA?
  • Have you successfully run ./runtests.sh static?
  • Have you successfully run ./runtests.sh tests/unit?

Instead of returning <package>=<version>, it was returning
<package>=<apt.Version>.  Resolve the version string which
is the intended return value.

Fix unit tests to cover this. Switch to using PropertyMocks,
as the MagicMock(wraps=...) did not work as I had expected.

LP #1873349

Signed-off-by: Chris Patterson <chris.patterson@canonical.com>
@sergiusens sergiusens merged commit 2e65499 into master Apr 17, 2020
@sergiusens sergiusens deleted the fix-manifest branch April 17, 2020 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants