Merge ~pappacena/launchpad:testfix-product-getOCIProject-permission into launchpad:master

Proposed by Thiago F. Pappacena
Status: Merged
Approved by: Thiago F. Pappacena
Approved revision: bb2217aba3af4cf173535b91bf6dc247008d93a1
Merge reported by: Otto Co-Pilot
Merged at revision: not available
Proposed branch: ~pappacena/launchpad:testfix-product-getOCIProject-permission
Merge into: launchpad:master
Diff against target: 22 lines (+2/-2)
1 file modified
lib/lp/registry/tests/test_product.py (+2/-2)
Reviewer Review Type Date Requested Status
Colin Watson (community) Approve
Review via email: mp+400663@code.launchpad.net

Commit message

Moving permission to call Product.getOCIProject from View to LimitedView

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
1diff --git a/lib/lp/registry/tests/test_product.py b/lib/lp/registry/tests/test_product.py
2index bd40296..0f04a93 100644
3--- a/lib/lp/registry/tests/test_product.py
4+++ b/lib/lp/registry/tests/test_product.py
5@@ -829,7 +829,7 @@ class TestProduct(TestCaseWithFactory):
6 'launchpad.LimitedView': set((
7 'bugtargetdisplayname', 'display_name', 'displayname', 'drivers',
8 'enable_bug_expiration', 'getBugTaskWeightFunction',
9- 'getSpecification',
10+ 'getOCIProject', 'getSpecification',
11 'icon', 'logo', 'name', 'official_answers', 'official_anything',
12 'official_blueprints', 'official_codehosting', 'official_malone',
13 'owner', 'parent_subscription_target', 'pillar', 'projectgroup',
14@@ -865,7 +865,7 @@ class TestProduct(TestCaseWithFactory):
15 'getEffectiveTranslationPermission', 'getExternalBugTracker',
16 'getFAQ', 'getFirstEntryToImport', 'getLinkedBugWatches',
17 'getMergeProposals', 'getMilestone', 'getMilestonesAndReleases',
18- 'getOCIProject', 'getQuestion', 'getQuestionLanguages',
19+ 'getQuestion', 'getQuestionLanguages',
20 'getPackage', 'getRelease', 'getSeries', 'getSubscription',
21 'getSubscriptions', 'getSupportedLanguages', 'getTimeline',
22 'getTopContributors', 'getTopContributorsGroupedByCategory',