From f064690452e7b465a5ef9ea136409c34e52f1dac Mon Sep 17 00:00:00 2001 From: anti Date: Mon, 20 Apr 2026 02:26:54 -0400 Subject: [PATCH] fixed(tests): jwt_lazy --- tests/test_env_lazy_jwt.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_env_lazy_jwt.py b/tests/test_env_lazy_jwt.py index d4eab6e..5517904 100644 --- a/tests/test_env_lazy_jwt.py +++ b/tests/test_env_lazy_jwt.py @@ -5,6 +5,7 @@ from __future__ import annotations import importlib import os import sys +from pathlib import Path import pytest @@ -41,7 +42,8 @@ def test_agent_cli_imports_without_jwt_secret(monkeypatch, tmp_path): clean_env["PATH"] = os.environ["PATH"] clean_env["HOME"] = str(tmp_path) repo = pathlib.Path(__file__).resolve().parent.parent - binary = repo / ".venv" / "bin" / "decnet" + # binary = repo / ".venv" / "bin" / "decnet" + binary = Path(sys.executable).parent / "decnet" result = subprocess.run( [str(binary), "agent", "--help"], cwd=str(tmp_path),