summaryrefslogtreecommitdiff
path: root/tests/test_table_creator.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-19 14:45:28 -0400
committerKevin Van Brunt <kmvanbrunt@gmail.com>2021-08-19 15:50:24 -0400
commit8ba05ef8bcdd53bdd54999cc9885ab310b766d9c (patch)
tree4a683b34d41710f94e7f259580ceb0ff1f46cc4b /tests/test_table_creator.py
parentdf1925db8607b06079ba78d497701ca961b855ab (diff)
downloadcmd2-git-8ba05ef8bcdd53bdd54999cc9885ab310b766d9c.tar.gz
set command output now uses SimpleTable.
Tabled tab completion now includes divider row. Tab completion results for aliases, macros, and Settables wrap long fields. SimpleTable now accepts blank for the divider character. It is identical to passing None. Removed --verbose flag from set command so the descriptions always show.
Diffstat (limited to 'tests/test_table_creator.py')
-rw-r--r--tests/test_table_creator.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/test_table_creator.py b/tests/test_table_creator.py
index 70b77bad..e1bc8883 100644
--- a/tests/test_table_creator.py
+++ b/tests/test_table_creator.py
@@ -364,9 +364,12 @@ def test_simple_table_creation():
# No divider
st = SimpleTable([column_1, column_2], divider_char=None)
- table = st.generate_table(row_data)
+ no_divider_1 = st.generate_table(row_data)
- assert table == (
+ st = SimpleTable([column_1, column_2], divider_char='')
+ no_divider_2 = st.generate_table(row_data)
+
+ assert no_divider_1 == no_divider_2 == (
'Col 1 Col 2 \n'
'Col 1 Row 1 Col 2 Row 1 \n'
'\n'