~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

Nearly complete .bzr/checkout splitout.

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
    import bzrlib.tests.branch_implementations
85
85
    import bzrlib.tests.bzrdir_implementations
86
86
    import bzrlib.tests.repository_implementations
 
87
    import bzrlib.tests.workingtree_implementations
87
88
    return [
88
89
            bzrlib.doc,
89
90
            bzrlib.tests.blackbox,
90
91
            bzrlib.tests.branch_implementations,
91
92
            bzrlib.tests.bzrdir_implementations,
92
93
            bzrlib.tests.repository_implementations,
 
94
            bzrlib.tests.workingtree_implementations,
93
95
            ]
94
96
 
95
97
 
711
713
        repo = self.make_repository(relpath)
712
714
        return repo.bzrdir.create_branch()
713
715
 
714
 
    def make_repository(self, relpath):
715
 
        """Create a repository on our default transport at relpath."""
 
716
    def make_bzrdir(self, relpath):
716
717
        try:
717
718
            url = self.get_url(relpath)
718
719
            segments = url.split('/')
723
724
                    t.mkdir(segments[-1])
724
725
                except FileExists:
725
726
                    pass
726
 
            return bzrlib.bzrdir.BzrDir.create_repository(url)
 
727
            return bzrlib.bzrdir.BzrDir.create(url)
727
728
        except UninitializableFormat:
728
729
            raise TestSkipped("Format %s is not initializable.")
729
730
 
 
731
    def make_repository(self, relpath):
 
732
        """Create a repository on our default transport at relpath."""
 
733
        made_control = self.make_bzrdir(relpath)
 
734
        return made_control.create_repository()
 
735
 
730
736
    def make_branch_and_tree(self, relpath):
731
737
        """Create a branch on the transport and a tree locally.
732
738