Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/integration/test_commands_deep_coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def runner() -> CliRunner:


@pytest.fixture
def project_with_deps(tmp_path: Path) -> Path:
def project_with_deps(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
"""Create a minimal but realistic APM project with dependencies."""
# The CLI resolves the project from the process cwd, not ``obj["cwd"]``.
monkeypatch.chdir(tmp_path)
# Create apm.yml
apm_yml = tmp_path / "apm.yml"
apm_yml.write_text(
Expand Down Expand Up @@ -88,8 +90,10 @@ def project_with_deps(tmp_path: Path) -> Path:


@pytest.fixture
def project_no_deps(tmp_path: Path) -> Path:
def project_no_deps(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path:
"""Create a minimal APM project with no dependencies."""
# The CLI resolves the project from the process cwd, not ``obj["cwd"]``.
monkeypatch.chdir(tmp_path)
apm_yml = tmp_path / "apm.yml"
apm_yml.write_text(
"name: test-project\n"
Expand Down
Loading