~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/commands/test_checkout.py

terminal_width can now returns None.

* bzrlib/win32utils.py:
(get_console_size): Fix typo in comment.

* bzrlib/ui/text.py:
(TextProgressView._show_line): Handle the no terminal present case.

* bzrlib/tests/test_osutils.py:
(TestTerminalWidth): Update tests.

* bzrlib/tests/blackbox/test_too_much.py:
Fix some imports.
(OldTests.test_bzr): Handle the no terminal present case.

* bzrlib/tests/__init__.py:
(VerboseTestResult.report_test_start): Handle the no terminal
present case.

* bzrlib/status.py:
(show_pending_merges): Handle the no terminal present case.
(show_pending_merges.show_log_message): Factor out some
code. Handle the no terminal present case.

* bzrlib/osutils.py:
(terminal_width): Return None if no precise value can be found.

* bzrlib/log.py:
(LineLogFormatter.__init__): Handle the no terminal present case.
(LineLogFormatter.truncate): Accept None as max_len meaning no
truncation.
(LineLogFormatter.log_string): 

* bzrlib/help.py:
(_help_commands_to_text): Handle the no terminal present case.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        self.start_logging_connections()
28
28
 
29
29
        cmd = cmd_checkout()
30
 
        cmd.run_direct(self.get_url('branch1'), 'local')
 
30
        cmd.run(self.get_url('branch1'), 'local')
31
31
        self.assertEquals(1, len(self.connections))
32
32
 
33
33
    def test_checkout_lightweight(self):
36
36
        self.start_logging_connections()
37
37
 
38
38
        cmd = cmd_checkout()
39
 
        cmd.run_direct(self.get_url('branch1'), 'local', lightweight=True)
 
39
        cmd.run(self.get_url('branch1'), 'local', lightweight=True)
40
40
        self.assertEquals(1, len(self.connections))
41
41