move environment to helpers module

This fixes registering pytest plugins
This commit is contained in:
Jörg Thalheim
2023-07-28 12:10:07 +02:00
committed by Mic92
parent 282307ca2a
commit df6e94b20e
5 changed files with 5 additions and 2 deletions

View File

@@ -13,6 +13,8 @@ packages = [ "clan_cli" ]
[tool.pytest.ini_options]
addopts = "--cov . --cov-report term --cov-report html:.reports/html --no-cov-on-fail"
norecursedirs = "tests/helpers"
[tool.mypy]
python_version = "3.10"

View File

@@ -0,0 +1,2 @@
import os
sys.path.append(os.path.join(os.path.dirname(__file__), 'helpers'))

View File

@@ -3,12 +3,11 @@ from typing import Union
import pytest
import pytest_subprocess.fake_process
from environment import mock_env
from pytest_subprocess import utils
import clan_cli.ssh
from .environment import mock_env
def test_no_args(
capsys: pytest.CaptureFixture, monkeypatch: pytest.MonkeyPatch