~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-03-03 07:03:44 UTC
  • mfrom: (1587.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060303070344-03bb9a021c0d964c
Merge in new reconcile command and revision metadata correctness checks.

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 for testing - hide the progress bar but emit note()s."""
 
89
 
 
90
    def clear(self):
 
91
        """See progress.ProgressBar.clear()."""
 
92
 
 
93
    def note(self, fmt_string, *args, **kwargs):
 
94
        """See progress.ProgressBar.note()."""
 
95
        print fmt_string % args
 
96
 
 
97
    def progress_bar(self):
 
98
        return self
 
99
        
 
100
    def update(self, message, count=None, total=None):
 
101
        """See progress.ProgressBar.update()."""