mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Verified and added unit test for Resolving #2760
This commit is contained in:
parent
cc6206db93
commit
c92d2a0c1e
1 changed files with 22 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue