l.r.b.t.t.TestDistroSeriesLocalDifferences(TestCaseWithFactory, DistroSeriesDifferenceMixin) : class documentation

Part of lp.registry.browser.tests.test_distroseries View In Hierarchy

Test the distroseries +localpackagediffs view.
Method makePackageUpgrade Create a DistroSeriesDifference for a package upgrade.
Method makeView Create a +localpackagediffs view for distroseries.
Method test_filter_form_if_differences Undocumented
Method test_parent_packagesets_localpackagediffs Undocumented
Method test_parent_packagesets_localpackagediffs_sorts Undocumented
Method test_label Undocumented
Method test_label_multiple_parents Undocumented
Method test_batch_includes_needing_attention_only Undocumented
Method test_batch_includes_different_versions_only Undocumented
Method test_template_includes_help_link Undocumented
Method test_diff_row_includes_last_comment_only Undocumented
Method test_diff_row_links_to_extra_details Undocumented
Method test_multiple_parents_display Undocumented
Method test_diff_row_shows_version_attached Undocumented
Method test_diff_row_no_published_version Undocumented
Method test_diff_row_last_changed Undocumented
Method test_diff_row_last_changed_also_shows_uploader_if_different Undocumented
Method test_diff_row_links_to_parent_changelog Undocumented
Method test_getUpgrades_shows_updates_in_parent Undocumented
Method enableDerivedSeriesUpgradeFeature Enable the feature flag for derived-series upgrade.
Method test_upgrades_offered_only_with_feature_flag Undocumented
Method test_upgrades_are_offered_if_appropriate Undocumented
Method test_upgrades_offered_only_if_available Undocumented
Method test_upgrades_not_offered_after_feature_freeze Undocumented
Method test_upgrade_creates_sync_jobs Undocumented
Method test_upgrade_gives_feedback Undocumented
Method test_requestUpgrades_is_efficient Undocumented
Method makeDSDJob Create a DistroSeriesDifferenceJob to update dsd.
Method test_higher_radio_mentions_parent Undocumented
Method test_higher_radio_mentions_parents Undocumented
Method test_batch_filtered Undocumented
Method test_batch_non_blacklisted Undocumented
Method test_batch_all_packages Undocumented
Method test_batch_wrong_param Undocumented
Method test_batch_blacklisted_differences_with_higher_version Undocumented
Method test_batch_resolved_differences Undocumented
Method test_canPerformSync_anon Undocumented
Method test_canPerformSync_non_anon_no_perm_dest_archive Undocumented
Method test_canPerformSync_non_anon Undocumented
Method test_hasPendingDSDUpdate_returns_False_if_no_pending_update Undocumented
Method test_hasPendingDSDUpdate_returns_True_if_pending_update Undocumented
Method test_pendingSync_returns_None_if_no_pending_sync Undocumented
Method test_pendingSync_returns_not_None_if_pending_sync Undocumented
Method test_isNewerThanParent_compares_versions_not_strings Undocumented
Method test_isNewerThanParent_is_False_for_parent_update Undocumented
Method test_isNewerThanParent_is_False_for_equivalent_updates Undocumented
Method test_isNewerThanParent_is_True_for_child_update Undocumented
Method test_canRequestSync_returns_False_if_pending_sync Undocumented
Method test_canRequestSync_returns_False_if_child_is_newer Undocumented
Method test_canRequestSync_returns_True_if_sync_makes_sense Undocumented
Method test_canRequestSync_ignores_DSDJobs Undocumented
Method test_canRequestSync_returns_False_if_DSD_is_resolved Undocumented
Method test_describeJobs_returns_None_if_no_jobs Undocumented
Method test_describeJobs_reports_pending_update Undocumented
Method test_describeJobs_reports_pending_sync Undocumented
Method test_describeJobs_reports_pending_queue Undocumented
Method test_describeJobs_reports_pending_sync_and_update Undocumented
Method test_sync_error_nothing_selected Undocumented
Method test_sync_error_invalid_selection Undocumented
Method test_sync_error_no_perm_dest_archive Undocumented
Method makePersonWithComponentPermission Undocumented
Method test_sync_success_perm_component Undocumented
Method test_sync_error_no_perm_component Undocumented
Method test_sync_with_sponsoring Undocumented
Method assertPackageCopied Undocumented
Method test_sync_success Undocumented
Method test_sync_success_not_yet_in_derived_series Undocumented
Method test_sync_in_released_series_in_updates Undocumented
Method test_diff_view_action_url Undocumented
Method test_specified_packagesets_filter_none_specified Undocumented
Method test_specified_packagesets_filter_specified Undocumented
Method test_search_for_packagesets Undocumented
Method test_specified_changed_by_filter_none_specified Undocumented
Method test_specified_changed_by_filter_specified Undocumented
Method test_search_for_changed_by Undocumented
Method _set_source_selection Undocumented
Method _setUpDSD Undocumented
Method _setUpPersonWithPerm Undocumented
Method _syncAndGetView Undocumented

Inherited from TestCaseWithFactory:

Method setUp Undocumented
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.

Inherited from DistroSeriesDifferenceMixin:

Method _test_packagesets Undocumented
Method _createChildAndParent Undocumented
Method _createChildAndParents Undocumented
def makePackageUpgrade(self, derived_series=None):
Create a DistroSeriesDifference for a package upgrade.
def makeView(self, distroseries=None):
Create a +localpackagediffs view for distroseries.
def test_filter_form_if_differences(self):
Undocumented
def test_parent_packagesets_localpackagediffs(self):
Undocumented
def test_parent_packagesets_localpackagediffs_sorts(self):
Undocumented
def test_label(self):
Undocumented
def test_label_multiple_parents(self):
Undocumented
def test_batch_includes_needing_attention_only(self):
Undocumented
def test_batch_includes_different_versions_only(self):
Undocumented
def test_template_includes_help_link(self):
Undocumented
def test_diff_row_includes_last_comment_only(self):
Undocumented
def test_diff_row_links_to_extra_details(self):
Undocumented
def test_multiple_parents_display(self):
Undocumented
def test_diff_row_shows_version_attached(self):
Undocumented
def test_diff_row_no_published_version(self):
Undocumented
def test_diff_row_last_changed(self):
Undocumented
def test_diff_row_last_changed_also_shows_uploader_if_different(self):
Undocumented
def test_diff_row_links_to_parent_changelog(self):
Undocumented
def test_getUpgrades_shows_updates_in_parent(self):
Undocumented
def enableDerivedSeriesUpgradeFeature(self):
Enable the feature flag for derived-series upgrade.
@with_celebrity_logged_in('admin')
def test_upgrades_offered_only_with_feature_flag(self):
Undocumented
def test_upgrades_are_offered_if_appropriate(self):
Undocumented
@with_celebrity_logged_in('admin')
def test_upgrades_offered_only_if_available(self):
Undocumented
@with_celebrity_logged_in('admin')
def test_upgrades_not_offered_after_feature_freeze(self):
Undocumented
def test_upgrade_creates_sync_jobs(self):
Undocumented
def test_upgrade_gives_feedback(self):
Undocumented
def test_requestUpgrades_is_efficient(self):
Undocumented
def makeDSDJob(self, dsd):
Create a DistroSeriesDifferenceJob to update dsd.
def test_higher_radio_mentions_parent(self):
Undocumented
def test_higher_radio_mentions_parents(self):
Undocumented
def _set_source_selection(self, series):
Undocumented
def test_batch_filtered(self):
Undocumented
def test_batch_non_blacklisted(self):
Undocumented
def test_batch_all_packages(self):
Undocumented
def test_batch_wrong_param(self):
Undocumented
def test_batch_blacklisted_differences_with_higher_version(self):
Undocumented
def test_batch_resolved_differences(self):
Undocumented
def _setUpDSD(self, src_name='src-name', versions=None, difference_type=None, distribution=None):
Undocumented
def test_canPerformSync_anon(self):
Undocumented
def test_canPerformSync_non_anon_no_perm_dest_archive(self):
Undocumented
def _setUpPersonWithPerm(self, derived_series):
Undocumented
def test_canPerformSync_non_anon(self):
Undocumented
def test_hasPendingDSDUpdate_returns_False_if_no_pending_update(self):
Undocumented
def test_hasPendingDSDUpdate_returns_True_if_pending_update(self):
Undocumented
def test_pendingSync_returns_None_if_no_pending_sync(self):
Undocumented
def test_pendingSync_returns_not_None_if_pending_sync(self):
Undocumented
def test_isNewerThanParent_compares_versions_not_strings(self):
Undocumented
def test_isNewerThanParent_is_False_for_parent_update(self):
Undocumented
def test_isNewerThanParent_is_False_for_equivalent_updates(self):
Undocumented
def test_isNewerThanParent_is_True_for_child_update(self):
Undocumented
def test_canRequestSync_returns_False_if_pending_sync(self):
Undocumented
def test_canRequestSync_returns_False_if_child_is_newer(self):
Undocumented
def test_canRequestSync_returns_True_if_sync_makes_sense(self):
Undocumented
def test_canRequestSync_ignores_DSDJobs(self):
Undocumented
def test_canRequestSync_returns_False_if_DSD_is_resolved(self):
Undocumented
def test_describeJobs_returns_None_if_no_jobs(self):
Undocumented
def test_describeJobs_reports_pending_update(self):
Undocumented
def test_describeJobs_reports_pending_sync(self):
Undocumented
def test_describeJobs_reports_pending_queue(self):
Undocumented
def test_describeJobs_reports_pending_sync_and_update(self):
Undocumented
def _syncAndGetView(self, derived_series, person, sync_differences, difference_type=None, view_name='+localpackagediffs', query_string='', sponsored=None):
Undocumented
def test_sync_error_nothing_selected(self):
Undocumented
def test_sync_error_invalid_selection(self):
Undocumented
def test_sync_error_no_perm_dest_archive(self):
Undocumented
def makePersonWithComponentPermission(self, archive, component=None):
Undocumented
def test_sync_success_perm_component(self):
Undocumented
def test_sync_error_no_perm_component(self):
Undocumented
def test_sync_with_sponsoring(self):
Undocumented
def assertPackageCopied(self, series, src_name, version, view):
Undocumented
def test_sync_success(self):
Undocumented
def test_sync_success_not_yet_in_derived_series(self):
Undocumented
def test_sync_in_released_series_in_updates(self):
Undocumented
def test_diff_view_action_url(self):
Undocumented
def test_specified_packagesets_filter_none_specified(self):
Undocumented
def test_specified_packagesets_filter_specified(self):
Undocumented
def test_search_for_packagesets(self):
Undocumented
def test_specified_changed_by_filter_none_specified(self):
Undocumented
def test_specified_changed_by_filter_specified(self):
Undocumented
def test_search_for_changed_by(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-12-13 00:00:05.