fixed(tests): jwt_lazy
Some checks failed
CI / Lint (ruff) (push) Successful in 12s
CI / SAST (bandit) (push) Successful in 15s
CI / Dependency audit (pip-audit) (push) Successful in 23s
CI / Test (Standard) (3.11) (push) Successful in 5m6s
CI / Test (Standard) (3.12) (push) Failing after 3h14m38s
CI / Test (Live) (3.11) (push) Has been cancelled
CI / Test (Fuzz) (3.11) (push) Has been cancelled
CI / Merge dev → testing (push) Has been cancelled
CI / Prepare Merge to Main (push) Has been cancelled
CI / Finalize Merge to Main (push) Has been cancelled

This commit is contained in:
2026-04-20 02:26:54 -04:00
parent dd82cd3f39
commit f064690452

View File

@@ -5,6 +5,7 @@ from __future__ import annotations
import importlib import importlib
import os import os
import sys import sys
from pathlib import Path
import pytest 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["PATH"] = os.environ["PATH"]
clean_env["HOME"] = str(tmp_path) clean_env["HOME"] = str(tmp_path)
repo = pathlib.Path(__file__).resolve().parent.parent 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( result = subprocess.run(
[str(binary), "agent", "--help"], [str(binary), "agent", "--help"],
cwd=str(tmp_path), cwd=str(tmp_path),