l.c.m.t.t.TestBranchMergeProposalNominateReviewer(TestCaseWithFactory) : class documentation

Part of lp.code.model.tests.test_branchmergeproposal View In Hierarchy

Test that the appropriate vote references get created.
Method setUp Undocumented
Method test_notify_on_nominate Undocumented
Method test_notify_on_nominate_suppressed_if_requested Undocumented
Method test_one_initial_votes A new merge proposal has one vote of the default reviewer.
Method makeProposalWithReviewer Make a proposal and request a review from reviewer.
Method test_pending_review_registrant Undocumented
Method assertOneReviewPending Undocumented
Method test_nominate_creates_reference Undocumented
Method test_nominate_with_None_review_type Undocumented
Method test_nominate_with_whitespace_review_type Undocumented
Method test_nominate_multiple_with_different_types Undocumented
Method test_nominate_multiple_with_same_types Undocumented
Method test_nominate_multiple_team_reviews_with_no_type Undocumented
Method test_nominate_updates_reference The existing reference is updated on re-nomination.
Method test_nominate_person_grants_visibility Undocumented
Method test_nominate_team_grants_visibility Undocumented
Method test_comment_with_vote_creates_reference A comment with a vote creates a vote reference.
Method test_comment_without_a_vote_does_not_create_reference A comment with a vote creates a vote reference.
Method test_second_vote_by_person_just_alters_reference A second vote changes the comment reference only.
Method test_vote_by_nominated_reuses_reference A comment with a vote for a nominated reviewer alters reference.
Method test_claiming_team_review Undocumented
Method test_claiming_tagless_team_review_with_tag Undocumented
Method test_preloadDataForBMPs_maps_votes_to_proposals Undocumented
Method _check_mp_branch_visibility Undocumented
Method _test_nominate_grants_visibility Nominated reviewers can see the source and target branches.
Method _assertVoteReference Undocumented

Inherited from TestCaseWithFactory:

Method getUserBrowser Return a Browser logged in as a fresh user, maybe opened at url.
Method getNonRedirectingBrowser Undocumented
Method createBranchAtURL Create a branch at the supplied URL.
Method create_branch_and_tree Create a database branch, bzr branch and bzr checkout.
Method createBzrBranch Create a bzr branch for a database branch.
Static Method getBranchPath Return the path of the branch in the mirrored area.
Method useTempBzrHome Undocumented
Method useBzrBranches Prepare for using bzr branches.

Inherited from TestCase (via TestCaseWithFactory):

Method becomeDbUser Commit, then log into the database as dbuser.
Method __str__ The string representation of a test is its id.
Method useContext Use the supplied context in this test.
Method makeTemporaryDirectory Create a temporary directory, and return its path.
Method installKarmaRecorder Set up and return a KarmaRecorder.
Method assertProvides Assert 'obj' correctly provides 'interface'.
Method assertNotifies Assert that a callable performs a given notification.
Method assertNoNotification Assert that no notifications are generated by the callable.
Method assertSqlAttributeEqualsDate Fail unless the value of the attribute is equal to the date.
Method assertTextMatchesExpressionIgnoreWhitespace Undocumented
Method assertIsInstance Assert that an instance is an instance of assert_class.
Method assertIsNot Assert that expected is not the same object as observed.
Method assertContentEqual Assert that 'iter1' has the same content as 'iter2'.
Method assertRaisesWithContent Check if the given exception is raised with given content.
Method assertBetween Assert that 'variable' is strictly between two boundaries.
Method assertVectorEqual Apply assertEqual to all given pairs in one go.
Method expectedLog Expect a log to be written that matches the regex.
Method pushConfig Push some key-value pairs into a section of the config.
Method attachOopses Undocumented
Method attachLibrarianLog Include the logChunks from fixture in the test details.
Method assertStatementCount Assert that the expected number of SQL statements occurred.
Method useTempDir Use a temporary directory for this test.
Method assertEmailHeadersEqual Assert that two email headers are equal.
Method assertStartsWith Undocumented
Method assertEndsWith Asserts that s ends with suffix.
Method checkPermissions Check if the used_permissions match expected_permissions.
Method assertEmailQueueLength Pop the email queue, assert its length, and return it.
Method _unfoldEmailHeader Unfold a multiline email header.
def setUp(self):
def test_notify_on_nominate(self):
def test_notify_on_nominate_suppressed_if_requested(self):
def test_one_initial_votes(self):
A new merge proposal has one vote of the default reviewer.
def makeProposalWithReviewer(self, reviewer=None, review_type=None, registrant=None, **kwargs):
Make a proposal and request a review from reviewer.

If no reviewer is passed in, make a reviewer.

def test_pending_review_registrant(self):
def assertOneReviewPending(self, merge_proposal, reviewer, review_type):
def test_nominate_creates_reference(self):
def test_nominate_with_None_review_type(self):
def test_nominate_with_whitespace_review_type(self):
def test_nominate_multiple_with_different_types(self):
def test_nominate_multiple_with_same_types(self):
def test_nominate_multiple_team_reviews_with_no_type(self):
def test_nominate_updates_reference(self):
The existing reference is updated on re-nomination.
def _check_mp_branch_visibility(self, branch, reviewer):
def _test_nominate_grants_visibility(self, reviewer):
Nominated reviewers can see the source and target branches.
def test_nominate_person_grants_visibility(self):
def test_nominate_team_grants_visibility(self):
def _assertVoteReference(self, votes, reviewer, comment):
def test_comment_with_vote_creates_reference(self):
A comment with a vote creates a vote reference.
def test_comment_without_a_vote_does_not_create_reference(self):
A comment with a vote creates a vote reference.
def test_second_vote_by_person_just_alters_reference(self):
A second vote changes the comment reference only.
def test_vote_by_nominated_reuses_reference(self):
A comment with a vote for a nominated reviewer alters reference.
def test_claiming_team_review(self):
def test_claiming_tagless_team_review_with_tag(self):
def test_preloadDataForBMPs_maps_votes_to_proposals(self):
API Documentation for Launchpad, generated by pydoctor at 2021-03-04 00:00:02.