1# Copyright (C) Internet Systems Consortium, Inc. ("ISC") 2# 3# SPDX-License-Identifier: MPL-2.0 4# 5# This Source Code Form is subject to the terms of the Mozilla Public 6# License, v. 2.0. If a copy of the MPL was not distributed with this 7# file, you can obtain one at https://mozilla.org/MPL/2.0/. 8# 9# See the COPYRIGHT file distributed with this work for additional 10# information regarding copyright ownership. 11 12import os 13import pytest 14 15 16@pytest.fixture 17def statsport(request): 18 # pylint: disable=unused-argument 19 env_port = os.getenv("EXTRAPORT1") 20 if env_port is None: 21 env_port = 5301 22 else: 23 env_port = int(env_port) 24 25 return env_port 26