mirror of
https://github.com/evennia/evennia.git
synced 2026-03-21 15:26:30 +01:00
Fixed unittests to work correctly with |-style colors.
This commit is contained in:
parent
c9a02f3d6c
commit
a740099d3f
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@ from evennia.server.sessionhandler import SESSIONS
|
|||
|
||||
# set up signal here since we are not starting the server
|
||||
|
||||
_RE = re.compile(r"^\+|-+\+|\+-+|--*|\|", re.MULTILINE)
|
||||
_RE = re.compile(r"^\+|-+\+|\+-+|--*|\|(?:\s|$)", re.MULTILINE)
|
||||
|
||||
|
||||
# ------------------------------------------------------------
|
||||
|
|
@ -134,7 +134,7 @@ class TestSystem(CommandTest):
|
|||
self.call(system.CmdPy(), "1+2", ">>> 1+2|3")
|
||||
|
||||
def test_scripts(self):
|
||||
self.call(system.CmdScripts(), "", "dbref ")
|
||||
self.call(system.CmdScripts(), "", "| dbref |")
|
||||
|
||||
def test_objects(self):
|
||||
self.call(system.CmdObjects(), "", "Object subtype totals")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue