Use relative imports and __init__.py in the statschannel test

This is in preparation for automatic import sorting.
This commit is contained in:
Štěpán Balážik 2026-01-27 22:40:47 +01:00
parent 4684c9c091
commit d0079b5722
3 changed files with 17 additions and 4 deletions

View file

@ -0,0 +1,15 @@
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# SPDX-License-Identifier: MPL-2.0
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, you can obtain one at https://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
import pytest
pytest.register_assert_rewrite("generic")

View file

@ -18,8 +18,7 @@ import requests
import isctest.mark
pytest.register_assert_rewrite("generic")
import generic
from . import generic
pytestmark = [
isctest.mark.with_json_c,

View file

@ -19,8 +19,7 @@ import requests
import isctest.mark
pytest.register_assert_rewrite("generic")
import generic
from . import generic
pytestmark = [
isctest.mark.with_libxml2,