mirror of
https://github.com/progval/irctest.git
synced 2025-04-07 07:49:52 +00:00
Make pytest show the diff between assertion operands.
Closes GH-118.
This commit is contained in:
14
conftest.py
14
conftest.py
@ -3,8 +3,18 @@ import importlib
|
|||||||
import _pytest.unittest
|
import _pytest.unittest
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from irctest.basecontrollers import BaseClientController, BaseServerController
|
# Must be called before importing irctest.cases.
|
||||||
from irctest.cases import BaseClientTestCase, BaseServerTestCase, _IrcTestCase
|
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):
|
def pytest_addoption(parser):
|
||||||
|
Reference in New Issue
Block a user