Migrate release runtime and gates to Python 3.14

This commit is contained in:
anor
2026-11-28 00:41:25 +10:00
parent a0de4659f1
commit 3af59574f3
41 changed files with 305 additions and 106 deletions
+8 -1
View File
@@ -65,10 +65,17 @@ def test_каналы_связи_пусты(tmp_path):
def test_пути_стендовые(tmp_path):
values = _built(tmp_path)
assert values["DATA_DIR"] != "/data_fast/smeta-web-data"
assert values["SMETA_PROJECT_DIR"] != "/home/mcp-user/smeta-web"
assert values["SMETA_PROJECT_DIR"] == str(tmp_path / "стенд") + "-norms"
assert values["DB_PATH"].endswith("shadow.db")
def test_публичный_адрес_указывает_на_порт_стенда(tmp_path):
text = make_env.build(_prod(tmp_path), tmp_path / "стенд", port="8107")
values = dict(line.split("=", 1) for line in text.splitlines()
if line and not line.startswith("#") and "=" in line)
assert values["PUBLIC_BASE_URL"] == "http://127.0.0.1:8107"
def test_собранное_проходит_предполётную(tmp_path, monkeypatch):
"""Связность: то, что собрал сборщик, обязано проходить проверку перед стартом."""
spec = importlib.util.spec_from_file_location(