diff options
author | Todd Leonhardt <todd.leonhardt@gmail.com> | 2021-01-29 19:48:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-29 19:48:10 -0500 |
commit | cd377071cd122bc92a829322e00ae43fd5a5c254 (patch) | |
tree | 7f42c3c3e81d769d7680b9f1ba8740e9f807b079 /tests/test_table_creator.py | |
parent | 2055dfc9a601d6f2b78e44690aeff475c79369d3 (diff) | |
parent | 246ce9de04e16b39c123a05426b90859af2a4251 (diff) | |
download | cmd2-git-cd377071cd122bc92a829322e00ae43fd5a5c254.tar.gz |
Merge pull request #1050 from python-cmd2/misc
Miscellaneous changes for the next release (1.4.1)
Diffstat (limited to 'tests/test_table_creator.py')
-rw-r--r-- | tests/test_table_creator.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_table_creator.py b/tests/test_table_creator.py index 0a0e712d..649674a4 100644 --- a/tests/test_table_creator.py +++ b/tests/test_table_creator.py @@ -259,6 +259,10 @@ def test_tabs(): inter_cell='\t', post_line='\t') assert row == ' Col 1 Col 2 ' + with pytest.raises(ValueError) as excinfo: + TableCreator([column_1, column_2], tab_width=0) + assert "Tab width cannot be less than 1" in str(excinfo.value) + def test_simple_table_creation(): column_1 = Column("Col 1", width=16) |