(request, tmp_path, monkeypatch)
| 16 | |
| 17 | @pytest.fixture(params=["json", "yaml"]) |
| 18 | def project(request, tmp_path, monkeypatch): |
| 19 | monkeypatch.chdir(tmp_path) |
| 20 | create_agent("support_agent", format=request.param) |
| 21 | root = tmp_path / "support_agent" |
| 22 | definition = root / f"agent.{request.param}" |
| 23 | data = yaml.safe_load(definition.read_text()) |
| 24 | data.pop("tools") |
| 25 | data.pop("skills") |
| 26 | definition.write_text(json.dumps(data)) |
| 27 | (root / ".env").write_text("OPENAI_API_KEY=test-placeholder-key\n") |
| 28 | return root |
| 29 | |
| 30 | |
| 31 | @pytest.fixture |
nothing calls this directly
no test coverage detected