Spaces:
Paused
Paused
Download tests/test_agentic/conftest.py from whassan/SensorflowStudio: direct link, hf CLI and curl.
- Browser
- Download file 1.19 kB
-
https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/tests/test_agentic/conftest.py
- Command line
-
hf download hf://spaces/whassan/SensorflowStudio/tests/test_agentic/conftest.py
-
curl -L -o conftest.py https://huggingface.co/spaces/whassan/SensorflowStudio/resolve/main/tests/test_agentic/conftest.py
1.19 kB
| """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 | |
| 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() | |
| def walkthrough(agentic_env): | |
| from sensorflow.agentic import worked_example as we_mod | |
| return we_mod.run_worked_example() | |
| def ped_cone_failure(walkthrough): | |
| from sensorflow.agentic import pipeline as pipeline_mod | |
| return pipeline_mod.get_failure(walkthrough["failure_id"]) | |
| def ped_cone_state(walkthrough): | |
| from sensorflow.agentic import pipeline as pipeline_mod | |
| return pipeline_mod.get_state(walkthrough["failure_id"]) | |