File: //usr/share/doc/python3-mailmanclient/src/conftest.py
# Copyright (C) 2017-2023 by the Free Software Foundation, Inc.
#
# This file is part of mailmanclient.
#
# mailmanclient is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by the
# Free Software Foundation, version 3 of the License.
#
# mailmanclient is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with mailmanclient. If not, see <http://www.gnu.org/licenses/>.
"""Wrappers for doctests to run with pytest"""
import pytest
from mailmanclient.testing.documentation import dump
@pytest.fixture(autouse=True)
def import_stuff(doctest_namespace):
doctest_namespace['dump'] = dump