From 6ba92adda3d66c6cfd4b5ac22216210d8101c29c Mon Sep 17 00:00:00 2001 From: Stefane Fermigier Date: Fri, 28 Dec 2018 14:45:13 +0100 Subject: [PATCH] simplify test --- Makefile | 2 +- abilian/sbe/apps/wiki/tests/test_models.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index bcb214f1..ddcdeb12 100644 --- a/Makefile +++ b/Makefile @@ -103,7 +103,7 @@ lint-py: @echo "--> Linting Python files" @make flake8 # @make lint-py3k - @make lint-mypy + # @make lint-mypy flake8: flake8 abilian tests diff --git a/abilian/sbe/apps/wiki/tests/test_models.py b/abilian/sbe/apps/wiki/tests/test_models.py index 7ef73a02..6454b5b8 100644 --- a/abilian/sbe/apps/wiki/tests/test_models.py +++ b/abilian/sbe/apps/wiki/tests/test_models.py @@ -29,7 +29,7 @@ def build_url(label, base, end): with patch("abilian.sbe.apps.wiki.forms.page_exists", page_exists_mock): result = md.convert(wikilink) - qtext = text_type(quote_plus(text.encode("utf-8"))) + qtext = quote_plus(text) expected = '

{text}

' expected = expected.format(href=qtext, text=text) assert expected == result @@ -39,7 +39,7 @@ def build_url(label, base, end): with patch("abilian.sbe.apps.wiki.forms.page_exists", page_exists_mock): result = md.convert(wikilink) - qtext = text_type(quote_plus(text.encode("utf-8"))) + qtext = quote_plus(text) expected = '

{text}

' expected = expected.format(href=qtext, text=text) assert expected == result