l.s.t.t.TestSnapSet(TestCaseWithFactory) : class documentation

Part of lp.snappy.tests.test_snap View In Hierarchy

No class docstring
Method setUp Undocumented
Method test_class_implements_interfaces Undocumented
Method makeSnapComponents Return a dict of values that can be used to make a Snap.
Method test_creation_bzr Undocumented
Method test_creation_git Undocumented
Method test_creation_git_url Undocumented
Method test_private_snap_for_public_sources Undocumented
Method test_private_git_requires_private_snap Undocumented
Method test_private_bzr_requires_private_snap Undocumented
Method test_private_team_requires_private_snap Undocumented
Method test_creation_no_source Undocumented
Method test_exists Undocumented
Method test_findByOwner Undocumented
Method test_findByPerson Undocumented
Method test_findByProject Undocumented
Method test_findByBranch Undocumented
Method test_findByGitRepository Undocumented
Method test_findByGitRepository_paths Undocumented
Method test_findByGitRef Undocumented
Method test_findByContext Undocumented
Method test_findByURL Undocumented
Method test_findByURLPrefix Undocumented
Method test_findByURLPrefixes Undocumented
Method test_getSnapcraftYaml_bzr_snap_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_bzr_build_aux_snap_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_bzr_plain_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_bzr_dot_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_bzr_error Undocumented
Method test_getSnapcraftYaml_git_snap_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_git_build_aux_snap_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_git_plain_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_git_dot_snapcraft_yaml Undocumented
Method test_getSnapcraftYaml_git_error Undocumented
Method test_getSnapcraftYaml_snap_bzr Undocumented
Method test_getSnapcraftYaml_snap_git Undocumented
Method test_getSnapcraftYaml_snap_git_external_github Undocumented
Method test_getSnapcraftYaml_invalid_data Undocumented
Method test_getSnapcraftYaml_safe_yaml Undocumented
Method test_getSnapcraftYaml_symlink Undocumented
Method test_getSnapcraftYaml_symlink_via_parent Undocumented
Method test_getSnapcraftYaml_symlink_above_root Undocumented
Method test__findStaleSnaps Undocumented
Method test__findStaleSnapsDistinct Undocumented
Method makeBuildableDistroArchSeries Undocumented
Method makeAutoBuildableSnap Undocumented
Method test_makeAutoBuilds Undocumented
Method test_makeAutoBuilds_skips_if_built_recently Undocumented
Method test_makeAutoBuilds_skips_if_built_recently_matching_channels Undocumented
Method test_makeAutoBuilds_skips_non_stale_snaps Undocumented
Method test_makeAutoBuilds_skips_pending Undocumented
Method test_makeAutoBuilds_tolerates_failures Undocumented
Method test_makeAutoBuilds_with_older_build Undocumented
Method test_makeAutoBuilds_with_older_and_newer_builds Undocumented
Method test_makeAutoBuilds_with_recent_build_from_different_archive Undocumented
Method test_makeAutoBuilds_honours_explicit_architectures Undocumented
Method test_makeAutoBuilds_infers_distroseries Undocumented
Method test_detachFromBranch Undocumented
Method test_detachFromGitRepository 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):
Undocumented
def test_class_implements_interfaces(self):
Undocumented
def makeSnapComponents(self, branch=None, git_ref=None):
Return a dict of values that can be used to make a Snap.

Suggested use: provide as kwargs to ISnapSet.new.

ParametersbranchAn IBranch, or None.
git_refAn IGitRef, or None.
def test_creation_bzr(self):
Undocumented
def test_creation_git(self):
Undocumented
def test_creation_git_url(self):
Undocumented
def test_private_snap_for_public_sources(self):
Undocumented
def test_private_git_requires_private_snap(self):
Undocumented
def test_private_bzr_requires_private_snap(self):
Undocumented
def test_private_team_requires_private_snap(self):
Undocumented
def test_creation_no_source(self):
Undocumented
def test_exists(self):
Undocumented
def test_findByOwner(self):
Undocumented
def test_findByPerson(self):
Undocumented
def test_findByProject(self):
Undocumented
def test_findByBranch(self):
Undocumented
def test_findByGitRepository(self):
Undocumented
def test_findByGitRepository_paths(self):
Undocumented
def test_findByGitRef(self):
Undocumented
def test_findByContext(self):
Undocumented
def test_findByURL(self):
Undocumented
def test_findByURLPrefix(self):
Undocumented
def test_findByURLPrefixes(self):
Undocumented
def test_getSnapcraftYaml_bzr_snap_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_bzr_build_aux_snap_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_bzr_plain_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_bzr_dot_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_bzr_error(self):
Undocumented
def test_getSnapcraftYaml_git_snap_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_git_build_aux_snap_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_git_plain_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_git_dot_snapcraft_yaml(self):
Undocumented
def test_getSnapcraftYaml_git_error(self):
Undocumented
def test_getSnapcraftYaml_snap_bzr(self):
Undocumented
def test_getSnapcraftYaml_snap_git(self):
Undocumented
@responses.activate
def test_getSnapcraftYaml_snap_git_external_github(self):
Undocumented
def test_getSnapcraftYaml_invalid_data(self):
Undocumented
def test_getSnapcraftYaml_safe_yaml(self):
Undocumented
@responses.activate
def test_getSnapcraftYaml_symlink(self):
Undocumented
@responses.activate
def test_getSnapcraftYaml_symlink_via_parent(self):
Undocumented
@responses.activate
def test_getSnapcraftYaml_symlink_above_root(self):
Undocumented
def test__findStaleSnaps(self):
Undocumented
def test__findStaleSnapsDistinct(self):
Undocumented
def makeBuildableDistroArchSeries(self, **kwargs):
Undocumented
def makeAutoBuildableSnap(self, **kwargs):
Undocumented
def test_makeAutoBuilds(self):
Undocumented
def test_makeAutoBuilds_skips_if_built_recently(self):
Undocumented
def test_makeAutoBuilds_skips_if_built_recently_matching_channels(self):
Undocumented
def test_makeAutoBuilds_skips_non_stale_snaps(self):
Undocumented
def test_makeAutoBuilds_skips_pending(self):
Undocumented
def test_makeAutoBuilds_tolerates_failures(self):
Undocumented
def test_makeAutoBuilds_with_older_build(self):
Undocumented
def test_makeAutoBuilds_with_older_and_newer_builds(self):
Undocumented
def test_makeAutoBuilds_with_recent_build_from_different_archive(self):
Undocumented
def test_makeAutoBuilds_honours_explicit_architectures(self):
Undocumented
def test_makeAutoBuilds_infers_distroseries(self):
Undocumented
def test_detachFromBranch(self):
Undocumented
def test_detachFromGitRepository(self):
Undocumented
API Documentation for Launchpad, generated by pydoctor at 2019-07-24 00:00:16.