From 18068d76ca304a55dffdb4fb54c674bb1dcc148f Mon Sep 17 00:00:00 2001 From: Miguel Victoria Villaquiran Date: Tue, 5 Jan 2021 22:17:26 +0100 Subject: Simplify tests (#685) Fix #501 --- ihatemoney/tests/common/help_functions.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 ihatemoney/tests/common/help_functions.py (limited to 'ihatemoney/tests/common/help_functions.py') diff --git a/ihatemoney/tests/common/help_functions.py b/ihatemoney/tests/common/help_functions.py new file mode 100644 index 0000000..e9c4dcd --- /dev/null +++ b/ihatemoney/tests/common/help_functions.py @@ -0,0 +1,5 @@ +def em_surround(string, regex_escape=False): + if regex_escape: + return r'%s<\/em>' % string + else: + return '%s' % string -- cgit v1.1