/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_workingtree/test_commit.py

  • Committer: Martin Pool
  • Date: 2010-09-14 04:37:03 UTC
  • mto: This revision was merged to the branch mainline in revision 5423.
  • Revision ID: mbp@sourcefrog.net-20100914043703-xqhmjw0mc9efult7
Rename CapturingUIFactory to ProgressRecordingUIFactory

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
from bzrlib.trace import mutter
39
39
from bzrlib.workingtree import (TreeEntry, TreeDirectory, TreeFile, TreeLink,
40
40
                                WorkingTree)
41
 
from bzrlib.ui.testsupport import CapturingUIFactory
 
41
from bzrlib.ui.testsupport import ProgressRecordingUIFactory
42
42
 
43
43
 
44
44
class TestCommit(TestCaseWithWorkingTree):
459
459
 
460
460
    def setUp(self):
461
461
        super(TestCommitProgress, self).setUp()
462
 
        ui.ui_factory = CapturingUIFactory()
 
462
        ui.ui_factory = ProgressRecordingUIFactory()
463
463
 
464
464
    def test_commit_progress_steps(self):
465
465
        # during commit we one progress update for every entry in the
478
478
        f.close()
479
479
        # set a progress bar that captures the calls so we can see what is
480
480
        # emitted
481
 
        factory = CapturingUIFactory()
 
481
        factory = ProgressRecordingUIFactory()
482
482
        ui.ui_factory = factory
483
483
        # TODO RBC 20060421 it would be nice to merge the reporter output
484
484
        # into the factory for this test - just make the test ui factory
499
499
        tree = self.make_branch_and_tree('.')
500
500
        # set a progress bar that captures the calls so we can see what is
501
501
        # emitted
502
 
        factory = CapturingUIFactory()
 
502
        factory = ProgressRecordingUIFactory()
503
503
        ui.ui_factory = factory
504
504
        def a_hook(_, _2, _3, _4, _5, _6):
505
505
            pass
522
522
        tree = self.make_branch_and_tree('.')
523
523
        # set a progress bar that captures the calls so we can see what is
524
524
        # emitted
525
 
        factory = CapturingUIFactory()
 
525
        factory = ProgressRecordingUIFactory()
526
526
        ui.ui_factory = factory
527
527
        def a_hook(_, _2, _3, _4, _5, _6, _7, _8):
528
528
            pass