From a740099d3ff163abdf2dca1983cc8e50e1e3ef1f Mon Sep 17 00:00:00 2001 From: Griatch Date: Sat, 6 Aug 2016 20:19:16 +0200 Subject: [PATCH] Fixed unittests to work correctly with |-style colors. --- evennia/commands/default/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evennia/commands/default/tests.py b/evennia/commands/default/tests.py index 2ff5086b0b..432d393f5b 100644 --- a/evennia/commands/default/tests.py +++ b/evennia/commands/default/tests.py @@ -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")