Verified and added unit test for Resolving #2760

This commit is contained in:
Griatch 2022-11-06 10:59:51 +01:00
parent cc6206db93
commit c92d2a0c1e

View file

@ -292,6 +292,7 @@ class TestEvTable(EvenniaTestCase):
+-----+
"""
# more advanced table with crop
self._validate(expected, str(table))
colA = evtable.EvColumn("it", "is", "a", "column", width=6, enforce_size=True)
@ -308,3 +309,24 @@ class TestEvTable(EvenniaTestCase):
"""
self._validate(expected, str(table))
def test_styling_overrides(self):
"""
Testing https://github.com/evennia/evennia/issues/2760
Not being able to override table settings.
"""
column = evtable.EvColumn("this", "is", "a", "column", fill_char=".")
table = evtable.EvTable(table=[column])
expected = """
+--------+
| this.. |
| is.... |
| a..... |
| column |
+--------+
"""
self._validate(expected, str(table))