Make pytest show the diff between assertion operands.

Closes GH-118.
This commit is contained in:
2021-11-01 09:28:51 +01:00
parent 144c3a04b4
commit 59a8a3e270

View File

@ -3,8 +3,18 @@ import importlib
import _pytest.unittest
import pytest
from irctest.basecontrollers import BaseClientController, BaseServerController
from irctest.cases import BaseClientTestCase, BaseServerTestCase, _IrcTestCase
# Must be called before importing irctest.cases.
pytest.register_assert_rewrite("irctest.cases")
from irctest.basecontrollers import ( # noqa: E402
BaseClientController,
BaseServerController,
)
from irctest.cases import ( # noqa: E402
BaseClientTestCase,
BaseServerTestCase,
_IrcTestCase,
)
def pytest_addoption(parser):