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

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

Tests for RosettaUploadJob.
Method setUp Undocumented
Method test_providesInterface Undocumented
Method test_upload_pot Undocumented
Method test_upload_pot_subdir Undocumented
Method test_init_translation_file_lists_skip_dirs Undocumented
Method test_upload_xpi_template Undocumented
Method test_upload_empty_pot Undocumented
Method test_upload_hidden_pot Undocumented
Method test_upload_pot_hidden_in_subdirectory Undocumented
Method test_upload_pot_uploader Undocumented
Method test_upload_pot_content Undocumented
Method test_upload_changed_files Undocumented
Method test_upload_to_no_import_series Undocumented
Method test_upload_translations Undocumented
Method test_upload_template_and_translations Undocumented
Method test_upload_extra_translations_no_import Undocumented
Method test_upload_extra_translations_import_templates Undocumented
Method test_upload_approved Undocumented
Method test_upload_simplest_case_approved Undocumented
Method test_upload_multiple_approved Undocumented
Method test_iterReady_job_type Undocumented
Method test_iterReady_not_ready Undocumented
Method test_iterReady_revision_ids_differ Undocumented
Method test_iterReady Undocumented
Method test_findUnfinishedJobs Undocumented
Method test_findUnfinishedJobs_does_not_find_finished_jobs Undocumented
Method test_findUnfinishedJobs_does_not_find_failed_jobs Undocumented
Method _makeBranchWithTreeAndFile Undocumented
Method _makeBranchWithTreeAndFiles Create a branch with a tree that contains the given files.
Method _makeRosettaUploadJob Create a RosettaUploadJob.
Method _commitFilesToTree Add files to the tree.
Method _makeProductSeries Undocumented
Method _runJobWithFile Undocumented
Method _runJobWithFiles Undocumented
Method _runJob 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 _makeBranchWithTreeAndFile(self, file_name, file_content=None):
def _makeBranchWithTreeAndFiles(self, files):
Create a branch with a tree that contains the given files.
ParametersfilesA list of pairs of file names and file content. file content is a byte string and may be None or missing completely, in which case an arbitrary unique string is used.
ReturnsThe revision of the first commit.
def _makeRosettaUploadJob(self):
Create a RosettaUploadJob.
def _commitFilesToTree(self, files, commit_message=None):
Add files to the tree.
ParametersfilesA list of pairs of file names and file content. file content is a byte string and may be None or missing completely, in which case an arbitrary unique string is used.
ReturnsThe revision of this commit.
def _makeProductSeries(self, mode):
def _runJobWithFile(self, import_mode, file_name, file_content=None):
def _runJobWithFiles(self, import_mode, files, do_upload_translations=False):
def _runJob(self, import_mode, revision_id, do_upload_translations=False):
def test_providesInterface(self):
def test_upload_pot(self):
def test_upload_pot_subdir(self):
def test_init_translation_file_lists_skip_dirs(self):
def test_upload_xpi_template(self):
def test_upload_empty_pot(self):
def test_upload_hidden_pot(self):
def test_upload_pot_hidden_in_subdirectory(self):
def test_upload_pot_uploader(self):
def test_upload_pot_content(self):
def test_upload_changed_files(self):
def test_upload_to_no_import_series(self):
def test_upload_translations(self):
def test_upload_template_and_translations(self):
def test_upload_extra_translations_no_import(self):
def test_upload_extra_translations_import_templates(self):
def test_upload_approved(self):
def test_upload_simplest_case_approved(self):
def test_upload_multiple_approved(self):
def test_iterReady_job_type(self):
def test_iterReady_not_ready(self):
def test_iterReady_revision_ids_differ(self):
def test_iterReady(self):
def test_findUnfinishedJobs(self):
def test_findUnfinishedJobs_does_not_find_finished_jobs(self):
def test_findUnfinishedJobs_does_not_find_failed_jobs(self):
API Documentation for Launchpad, generated by pydoctor at 2020-11-30 00:00:03.