ruff: apply automatic fixes
This commit is contained in:
@@ -53,8 +53,7 @@ class Command:
|
||||
|
||||
@pytest.fixture
|
||||
def command() -> Iterator[Command]:
|
||||
"""
|
||||
Starts a background command. The process is automatically terminated in the end.
|
||||
"""Starts a background command. The process is automatically terminated in the end.
|
||||
>>> p = command.run(["some", "daemon"])
|
||||
>>> print(p.pid)
|
||||
"""
|
||||
|
||||
@@ -9,7 +9,7 @@ from clan_lib.nix import nix_shell
|
||||
|
||||
sys.path.append(str(Path(__file__).parent / "helpers"))
|
||||
sys.path.append(
|
||||
str(Path(__file__).parent.parent)
|
||||
str(Path(__file__).parent.parent),
|
||||
) # Also add clan vm manager to PYTHONPATH
|
||||
|
||||
pytest_plugins = [
|
||||
|
||||
@@ -13,23 +13,17 @@ else:
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def project_root() -> Path:
|
||||
"""
|
||||
Root directory the clan-cli
|
||||
"""
|
||||
"""Root directory the clan-cli"""
|
||||
return PROJECT_ROOT
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def test_root() -> Path:
|
||||
"""
|
||||
Root directory of the tests
|
||||
"""
|
||||
"""Root directory of the tests"""
|
||||
return TEST_ROOT
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
def clan_core() -> Path:
|
||||
"""
|
||||
Directory of the clan-core flake
|
||||
"""
|
||||
"""Directory of the clan-core flake"""
|
||||
return CLAN_CORE
|
||||
|
||||
Reference in New Issue
Block a user