Spaces:
Paused
Paused
File size: 1,192 Bytes
963e554 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | """Shared fixtures: isolated agentic storage root + one worked-example run
reused by every test module (the pipeline is deterministic, so sharing is
safe and keeps the suite fast)."""
from __future__ import annotations
import pytest
from sensorflow.agentic import data as data_mod
from sensorflow.agentic import store as store_mod
@pytest.fixture(scope="session", autouse=True)
def agentic_env(tmp_path_factory):
root = tmp_path_factory.mktemp("agentic_env")
store_mod.set_agentic_root(str(root))
data_mod.reset_data_cache()
yield {"root": root}
store_mod.set_agentic_root("runs/agentic")
data_mod.reset_data_cache()
@pytest.fixture(scope="session")
def walkthrough(agentic_env):
from sensorflow.agentic import worked_example as we_mod
return we_mod.run_worked_example()
@pytest.fixture(scope="session")
def ped_cone_failure(walkthrough):
from sensorflow.agentic import pipeline as pipeline_mod
return pipeline_mod.get_failure(walkthrough["failure_id"])
@pytest.fixture(scope="session")
def ped_cone_state(walkthrough):
from sensorflow.agentic import pipeline as pipeline_mod
return pipeline_mod.get_state(walkthrough["failure_id"])
|