Archivio sorgente con submodule e vision-engine-version.txt (#109)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -124,6 +124,16 @@ def test_variabili_del_contratto(avvio, tmp_path):
|
||||
assert len(e[k]) >= 32
|
||||
|
||||
|
||||
def test_versione_motore_visione_letta_dalla_radice_sorgente(avvio, tmp_path, monkeypatch):
|
||||
# #109: da sorgente il file vision-engine-version.txt sta nella radice del repo e arriva al worker
|
||||
prog = tmp_path / "prog"
|
||||
prog.mkdir()
|
||||
(prog / "vision-engine-version.txt").write_bytes(b"a" * 40)
|
||||
monkeypatch.setattr(avvio, "cartella_programma", lambda: prog)
|
||||
avvio.imposta_ambiente(tmp_path / "dati", "127.0.0.1", {k: "x" * 32 for k in avvio.SEGRETI})
|
||||
assert os.environ["VISION_ENGINE_VERSION"] == "a" * 40
|
||||
|
||||
|
||||
def test_config_env_generato_una_volta_e_riletto(avvio, tmp_path):
|
||||
dati = tmp_path / "Tielogic" / "TieMeasureFlow"
|
||||
primo = avvio.carica_segreti(dati)
|
||||
|
||||
Reference in New Issue
Block a user