~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: John Arbash Meinel
  • Date: 2006-02-21 16:43:22 UTC
  • mfrom: (1560 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1562.
  • Revision ID: john@arbash-meinel.com-20060221164322-b007aa882582a66e
[merge] bzr.dev, cleanup conflicts, fixup http tests for new TestCase layout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
    import bzrlib.tests.blackbox
82
82
    import bzrlib.tests.branch_implementations
83
83
    import bzrlib.tests.bzrdir_implementations
 
84
    import bzrlib.tests.interrepository_implementations
84
85
    import bzrlib.tests.repository_implementations
85
86
    import bzrlib.tests.workingtree_implementations
86
87
    return [
88
89
            bzrlib.tests.blackbox,
89
90
            bzrlib.tests.branch_implementations,
90
91
            bzrlib.tests.bzrdir_implementations,
 
92
            bzrlib.tests.interrepository_implementations,
91
93
            bzrlib.tests.repository_implementations,
92
94
            bzrlib.tests.workingtree_implementations,
93
95
            ]
579
581
            break
580
582
        # make a fake bzr directory there to prevent any tests propagating
581
583
        # up onto the source directory's real branch
582
 
        os.mkdir(osutils.pathjoin(TestCaseInTempDir.TEST_ROOT, '.bzr'))
 
584
        bzrdir.BzrDir.create_standalone_workingtree(TestCaseInTempDir.TEST_ROOT)
583
585
 
584
586
    def setUp(self):
585
587
        super(TestCaseInTempDir, self).setUp()
747
749
        except errors.UninitializableFormat:
748
750
            raise TestSkipped("Format %s is not initializable.")
749
751
 
750
 
    def make_repository(self, relpath):
 
752
    def make_repository(self, relpath, shared=False):
751
753
        """Create a repository on our default transport at relpath."""
752
754
        made_control = self.make_bzrdir(relpath)
753
 
        return made_control.create_repository()
 
755
        return made_control.create_repository(shared=shared)
754
756
 
755
757
    def make_branch_and_tree(self, relpath):
756
758
        """Create a branch on the transport and a tree locally.