From 7a4733fe39c014c052f968ca75fc984113ca92e6 Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Sat, 16 May 2020 23:32:27 +0200 Subject: [PATCH 1/2] Update order of values in error diff --- tests/conftest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index f750766..16b9e41 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -206,8 +206,8 @@ def number(): def test_failed(): > assert "emoji" == "hello world" E AssertionError: assert 'emoji' == 'hello world' - E - emoji - E + hello world + E - hello world + E + emoji test_emoji_tests.py:5: AssertionError ``` @@ -288,8 +288,8 @@ def number(): def test_failed(): > assert "emoji" == "hello world" E AssertionError: assert 'emoji' == 'hello world' - E - emoji - E + hello world + E - hello world + E + emoji test_emoji_tests.py:5: AssertionError ``` From 7c7c777884a8ebcf51409cf9409a52bf43f997bb Mon Sep 17 00:00:00 2001 From: Raphael Pierzina Date: Sat, 16 May 2020 23:38:00 +0200 Subject: [PATCH 2/2] Add pytest>=5.4.0 requirement to tox config --- tox.ini | 1 + 1 file changed, 1 insertion(+) diff --git a/tox.ini b/tox.ini index a4211aa..187d873 100644 --- a/tox.ini +++ b/tox.ini @@ -4,6 +4,7 @@ envlist = py36,py37,{py36,py37}-emoji,mypy,flake8 [testenv] deps = freezegun + pytest>=5.4.0 emoji: pytest-emoji commands = pytest -v {posargs:tests}