Merge ~ines-almeida/launchpad:pro-enable-core18/fix-unit-tests into launchpad:master

Proposed by Ines Almeida
Status: Merged
Approved by: Colin Watson
Approved revision: 50ca0fd20c3462ae8716ca2b2a5cc7f2de9bbbab
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~ines-almeida/launchpad:pro-enable-core18/fix-unit-tests
Merge into: launchpad:master
Diff against target: 22 lines (+9/-2)
1 file modified
lib/lp/snappy/tests/test_snap.py (+9/-2)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+454254@code.launchpad.net

Commit message

Fix failing pro-enable unit test

Description of the change

I moved this unit test last minute, and missed re-running it

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/lib/lp/snappy/tests/test_snap.py b/lib/lp/snappy/tests/test_snap.py
index f94ab74..14fda0d 100644
--- a/lib/lp/snappy/tests/test_snap.py
+++ b/lib/lp/snappy/tests/test_snap.py
@@ -3654,8 +3654,15 @@ class TestSnapProcessors(TestCaseWithFactory):
3654 GitHostingFixture()3654 GitHostingFixture()
3655 ).getBlob = lambda path, *args, **kwargs: blob3655 ).getBlob = lambda path, *args, **kwargs: blob
36563656
3657 components = self.makeSnapComponents(git_ref=git_ref)3657 registrant = self.factory.makePerson()
3658 components["pro_enable"] = None3658 components = dict(
3659 registrant=registrant,
3660 owner=self.factory.makeTeam(owner=registrant),
3661 distro_series=self.factory.makeDistroSeries(),
3662 name=self.factory.getUniqueUnicode("snap-name"),
3663 git_ref=git_ref,
3664 pro_enable=None,
3665 )
36593666
3660 snap = getUtility(ISnapSet).new(**components)3667 snap = getUtility(ISnapSet).new(**components)
3661 self.assertFalse(snap.pro_enable)3668 self.assertFalse(snap.pro_enable)

Subscribers

People subscribed via source and target branches

to status/vote changes: