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:
Tom Krizek
2023-11-24 15:50:08 +01:00
parent fc295b2b5d
commit a57af8163a
2 changed files with 6 additions and 2 deletions

View File

@@ -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")

View File

@@ -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")