test: earlier assert rewrite for test utitlities
This patch moves the assert rewrite for test utilities to happen before
other imports to ensure that assert rewrites at the right time.
Without this some assert output were not formatted nicely with a diff
and just had AssertionError as output.
import pytest
+pytest.register_assert_rewrite("test.utils")
+
from rdflib import Graph
from .data import TEST_DATA_DIR
@@ -9,7 +11,6 @@ pytest_plugins = [EarlReporter.__module__]
# This is here so that asserts from these modules are formatted for human
# readibility.
-pytest.register_assert_rewrite("test.utils")
@pytest.fixture(scope="session")
