Allow assertion message rewrite in statschannel test
By default, the useful assertion message rewrite is used by pytest for test modules only. Since another module is imported with shared functionality, ensure it has pytest's assertion message rewriting enabled to obtain more debug information in case it fails.
This commit is contained in:
@@ -15,9 +15,11 @@ from datetime import datetime
|
||||
|
||||
import pytest
|
||||
|
||||
import generic
|
||||
import pytest_custom_markers
|
||||
|
||||
pytest.register_assert_rewrite("generic")
|
||||
import generic
|
||||
|
||||
pytestmark = pytest_custom_markers.have_json_c
|
||||
requests = pytest.importorskip("requests")
|
||||
|
||||
|
||||
@@ -16,9 +16,11 @@ import xml.etree.ElementTree as ET
|
||||
|
||||
import pytest
|
||||
|
||||
import generic
|
||||
import pytest_custom_markers
|
||||
|
||||
pytest.register_assert_rewrite("generic")
|
||||
import generic
|
||||
|
||||
pytestmark = pytest_custom_markers.have_libxml2
|
||||
requests = pytest.importorskip("requests")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user