l.c.t.helpers : module documentation

Part of lp.codehosting.tests

Common helpers for codehosting tests.
Class AvatarTestCase Base class for tests that need a LaunchpadAvatar with some basic sample
Class LoomTestMixin Mixin to provide Bazaar test classes with limited loom support.
Function make_bazaar_branch_and_tree Make a dummy Bazaar branch and working tree from a database Branch.
Function create_branch_with_one_revision Create a dummy Bazaar branch at the given directory.
Function force_stacked_on_url Set the stacked_on url of a branch without standard error-checking.
Class TestResultWrapper A wrapper for TestResult that knows about bzrlib's TestSkipped.
def make_bazaar_branch_and_tree(db_branch):
Make a dummy Bazaar branch and working tree from a database Branch.
def create_branch_with_one_revision(branch_dir, format=None):
Create a dummy Bazaar branch at the given directory.
def force_stacked_on_url(branch, url):
Set the stacked_on url of a branch without standard error-checking.

Bazaar 1.17 and up make it harder to create branches with invalid stacking. It's still worth testing that we don't blow up in the face of them, so this function lets us create them anyway.

API Documentation for Launchpad, generated by pydoctor at 2018-10-16 00:00:09.