Merge lp:~rockstar/launchpad/pedantry-round1 into lp:launchpad

Proposed by Paul Hummer
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: not available
Merged at revision: not available
Proposed branch: lp:~rockstar/launchpad/pedantry-round1
Merge into: lp:launchpad
Diff against target: 33 lines (+4/-9)
2 files modified
lib/lp/code/stories/branches/xx-branch-edit.txt (+4/-2)
lib/lp/testing/factory.py (+0/-7)
To merge this branch: bzr merge lp:~rockstar/launchpad/pedantry-round1
Reviewer Review Type Date Requested Status
Michael Hudson-Doyle Approve
Review via email: mp+17441@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Paul Hummer (rockstar) wrote :

Hi Michael-

  This change fixes bug #429813 which I apparently filed after talking to you.
It was a bug assigned to me, and I want no more bugs assigned to me at all.
This bug removes a factory method that doesn't really test the real world
models the way they appear in production.

Cheers,
Paul

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Woo.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/code/stories/branches/xx-branch-edit.txt'
--- lib/lp/code/stories/branches/xx-branch-edit.txt 2009-10-10 23:02:19 +0000
+++ lib/lp/code/stories/branches/xx-branch-edit.txt 2010-01-15 04:20:25 +0000
@@ -216,8 +216,10 @@
216 >>> sample_person = getUtility(IPersonSet).getByName('name12')216 >>> sample_person = getUtility(IPersonSet).getByName('name12')
217 >>> foogoo = factory.makeProduct(217 >>> foogoo = factory.makeProduct(
218 ... name='foogoo', owner=sample_person)218 ... name='foogoo', owner=sample_person)
219 >>> foogoo_svn = factory.makeImportBranch(219 >>> foogoo_svn_import = factory.makeCodeImport(
220 ... name='foogoo-svn', product=foogoo, owner=sample_person)220 ... svn_branch_url='http://foogoo.example.com',
221 ... branch_name='foogoo-svn', product=foogoo, registrant=sample_person)
222 >>> foogoo_svn = foogoo_svn_import.branch
221 >>> _unused = foogoo_svn.subscribe(sample_person,223 >>> _unused = foogoo_svn.subscribe(sample_person,
222 ... BranchSubscriptionNotificationLevel.ATTRIBUTEONLY,224 ... BranchSubscriptionNotificationLevel.ATTRIBUTEONLY,
223 ... BranchSubscriptionDiffSize.NODIFF,225 ... BranchSubscriptionDiffSize.NODIFF,
224226
=== modified file 'lib/lp/testing/factory.py'
--- lib/lp/testing/factory.py 2010-01-13 14:16:18 +0000
+++ lib/lp/testing/factory.py 2010-01-15 04:20:25 +0000
@@ -748,13 +748,6 @@
748 product = self.makeProduct()748 product = self.makeProduct()
749 return self.makeBranch(product=product, **kwargs)749 return self.makeBranch(product=product, **kwargs)
750750
751 def makeImportBranch(self, **kwargs):
752 """Make a in import branch on an arbitrary product.
753
754 See `makeBranch` for more information on arguments.
755 """
756 return self.makeBranch(branch_type=BranchType.IMPORTED, **kwargs)
757
758 def makeAnyBranch(self, **kwargs):751 def makeAnyBranch(self, **kwargs):
759 """Make a branch without caring about its container.752 """Make a branch without caring about its container.
760753