~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/__init__.py

 * New 'reconcile' command will check branch consistency and repair indexes
   that can become out of sync in pre 0.8 formats. (Robert Collins,
   Aaron Bentley)

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
                          TestSuite,
30
30
                          TestLoader,
31
31
                          )
 
32
import bzrlib.ui as ui
 
33
 
32
34
 
33
35
def test_suite():
34
36
    testmod_names = [
49
51
                     'bzrlib.tests.blackbox.test_missing',
50
52
                     'bzrlib.tests.blackbox.test_outside_wt',
51
53
                     'bzrlib.tests.blackbox.test_pull',
 
54
                     'bzrlib.tests.blackbox.test_reconcile',
52
55
                     'bzrlib.tests.blackbox.test_re_sign',
53
56
                     'bzrlib.tests.blackbox.test_revert',
54
57
                     'bzrlib.tests.blackbox.test_revno',
79
82
            return self.run_bzr_captured(args, retcode=retcode)[0]
80
83
        else:
81
84
            return self.run_bzr_captured(args, retcode=retcode)
 
85
 
 
86
 
 
87
class TestUIFactory(ui.UIFactory):
 
88
    """A UI Factory which never captures its output.
 
89
    """
 
90
 
 
91
    def clear(self):
 
92
        """See progress.ProgressBar.clear()."""
 
93
 
 
94
    def note(self, fmt_string, *args, **kwargs):
 
95
        """See progress.ProgressBar.note()."""
 
96
        print fmt_string % args
 
97
 
 
98
    def progress_bar(self):
 
99
        return self
 
100
        
 
101
    def update(self, message, count=None, total=None):
 
102
        """See progress.ProgressBar.update()."""