Skip to content

Commit

Permalink
simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfermigier committed Dec 28, 2018
1 parent badca94 commit 6ba92ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions abilian/sbe/apps/wiki/tests/test_models.py
Expand Up @@ -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 = '<p><a class="wikilink" href="/?title={href}/">{text}</a></p>'
expected = expected.format(href=qtext, text=text)
assert expected == result
Expand All @@ -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 = '<p><a class="wikilink new" href="/?title={href}/">{text}</a></p>'
expected = expected.format(href=qtext, text=text)
assert expected == result
Expand Down

0 comments on commit 6ba92ad

Please sign in to comment.