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
1=== modified file 'lib/lp/code/stories/branches/xx-branch-edit.txt'
2--- lib/lp/code/stories/branches/xx-branch-edit.txt 2009-10-10 23:02:19 +0000
3+++ lib/lp/code/stories/branches/xx-branch-edit.txt 2010-01-15 04:20:25 +0000
4@@ -216,8 +216,10 @@
5 >>> sample_person = getUtility(IPersonSet).getByName('name12')
6 >>> foogoo = factory.makeProduct(
7 ... name='foogoo', owner=sample_person)
8- >>> foogoo_svn = factory.makeImportBranch(
9- ... name='foogoo-svn', product=foogoo, owner=sample_person)
10+ >>> foogoo_svn_import = factory.makeCodeImport(
11+ ... svn_branch_url='http://foogoo.example.com',
12+ ... branch_name='foogoo-svn', product=foogoo, registrant=sample_person)
13+ >>> foogoo_svn = foogoo_svn_import.branch
14 >>> _unused = foogoo_svn.subscribe(sample_person,
15 ... BranchSubscriptionNotificationLevel.ATTRIBUTEONLY,
16 ... BranchSubscriptionDiffSize.NODIFF,
17
18=== modified file 'lib/lp/testing/factory.py'
19--- lib/lp/testing/factory.py 2010-01-13 14:16:18 +0000
20+++ lib/lp/testing/factory.py 2010-01-15 04:20:25 +0000
21@@ -748,13 +748,6 @@
22 product = self.makeProduct()
23 return self.makeBranch(product=product, **kwargs)
24
25- def makeImportBranch(self, **kwargs):
26- """Make a in import branch on an arbitrary product.
27-
28- See `makeBranch` for more information on arguments.
29- """
30- return self.makeBranch(branch_type=BranchType.IMPORTED, **kwargs)
31-
32 def makeAnyBranch(self, **kwargs):
33 """Make a branch without caring about its container.
34