← Back to team overview

launchpad-reviewers team mailing list archive

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

 

Thiago F. Pappacena has proposed merging ~pappacena/launchpad:testfix-product-getOCIProject-permission into launchpad:master.

Commit message:
Moving permission to call Product.getOCIProject from View to LimitedView

Requested reviews:
  Colin Watson (cjwatson)

For more details, see:
https://code.launchpad.net/~pappacena/launchpad/+git/launchpad/+merge/400663
-- 
Your team Launchpad code reviewers is subscribed to branch ~pappacena/launchpad:testfix-product-getOCIProject-permission.
diff --git a/lib/lp/registry/tests/test_product.py b/lib/lp/registry/tests/test_product.py
index bd40296..0f04a93 100644
--- a/lib/lp/registry/tests/test_product.py
+++ b/lib/lp/registry/tests/test_product.py
@@ -829,7 +829,7 @@ class TestProduct(TestCaseWithFactory):
         'launchpad.LimitedView': set((
             'bugtargetdisplayname', 'display_name', 'displayname', 'drivers',
             'enable_bug_expiration', 'getBugTaskWeightFunction',
-            'getSpecification',
+            'getOCIProject', 'getSpecification',
             'icon', 'logo', 'name', 'official_answers', 'official_anything',
             'official_blueprints', 'official_codehosting', 'official_malone',
             'owner', 'parent_subscription_target', 'pillar', 'projectgroup',
@@ -865,7 +865,7 @@ class TestProduct(TestCaseWithFactory):
             'getEffectiveTranslationPermission', 'getExternalBugTracker',
             'getFAQ', 'getFirstEntryToImport', 'getLinkedBugWatches',
             'getMergeProposals', 'getMilestone', 'getMilestonesAndReleases',
-            'getOCIProject', 'getQuestion', 'getQuestionLanguages',
+            'getQuestion', 'getQuestionLanguages',
             'getPackage', 'getRelease', 'getSeries', 'getSubscription',
             'getSubscriptions', 'getSupportedLanguages', 'getTimeline',
             'getTopContributors', 'getTopContributorsGroupedByCategory',

References