/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 brzlib/tests/test_ui.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 14:47:52 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521144752-8o6jt0a6xat9g7lm
More renames; commands in output, environment variables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
287
287
        self.assertEqual('', ui.stdout.getvalue())
288
288
 
289
289
    def test_quietness(self):
290
 
        self.overrideEnv('BZR_PROGRESS_BAR', 'text')
 
290
        self.overrideEnv('BRZ_PROGRESS_BAR', 'text')
291
291
        ui_factory = _mod_ui_text.TextUIFactory(None,
292
292
            TTYStringIO(),
293
293
            TTYStringIO())
374
374
            (FileStringIO, 'dumb', 'text', _mod_ui_text.TextProgressView),
375
375
            ):
376
376
            self.overrideEnv('TERM', term)
377
 
            self.overrideEnv('BZR_PROGRESS_BAR', pb)
 
377
            self.overrideEnv('BRZ_PROGRESS_BAR', pb)
378
378
            stdin = file_class('')
379
379
            stderr = file_class()
380
380
            stdout = file_class()
381
381
            uif = _mod_ui.make_ui_for_terminal(stdin, stdout, stderr)
382
382
            self.assertIsInstance(uif, _mod_ui_text.TextUIFactory,
383
 
                "TERM=%s BZR_PROGRESS_BAR=%s uif=%r" % (term, pb, uif,))
 
383
                "TERM=%s BRZ_PROGRESS_BAR=%s uif=%r" % (term, pb, uif,))
384
384
            self.assertIsInstance(uif.make_progress_view(),
385
385
                expected_pb_class,
386
 
                "TERM=%s BZR_PROGRESS_BAR=%s uif=%r" % (term, pb, uif,))
 
386
                "TERM=%s BRZ_PROGRESS_BAR=%s uif=%r" % (term, pb, uif,))
387
387
 
388
388
    def test_text_ui_non_terminal(self):
389
389
        """Even on non-ttys, make_ui_for_terminal gives a text ui."""