Fix some typos; skipping test awaiting later refactorings
This commit is contained in:
parent
9709ecbc57
commit
109e75d51c
2 changed files with 6 additions and 2 deletions
|
|
@ -385,15 +385,19 @@ class TestEvFormErrors(TestCase):
|
|||
"""
|
||||
self._validate(expected, self._form(form, cells=cell_mapping))
|
||||
|
||||
@skip("Awaiting rework of markup")
|
||||
def test_2763(self):
|
||||
"""
|
||||
Testing https://github.com/evennia/evennia/issues/2763
|
||||
|
||||
Duplication of ANSI sequences in evform
|
||||
|
||||
TODO: In the future, this test should work, using |n. Today, EvTable
|
||||
replaces with raw ANSI sequences already before getting to EvForm.
|
||||
"""
|
||||
|
||||
formdict = {"form": "|R A |n _ x1xx"}
|
||||
cell_mapping = {1: "test"}
|
||||
expected = f"{ansi.ANSI_RED} A {ansi.ANSI_NORMAL} _ test"
|
||||
expected = "|R A |n _ |ntest|n"
|
||||
form = evform.EvForm(formdict, cells=cell_mapping)
|
||||
self._validate(expected, str(form))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue