Spaces:
Runtime error
Runtime error
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081 Download tests/test_basic.py from Talosware/talos-access: direct link, hf CLI and curl.
- Browser
- Download file 802 Bytes
-
https://huggingface.co/spaces/Talosware/talos-access/resolve/main/tests/test_basic.py
- Command line
-
hf download hf://spaces/Talosware/talos-access/tests/test_basic.py
-
curl -L -o test_basic.py https://huggingface.co/spaces/Talosware/talos-access/resolve/main/tests/test_basic.py
802 Bytes
| import os | |
| import sys | |
| def test_init_script_exists(): | |
| root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| path = os.path.join(root, "init.sh") | |
| assert os.path.isfile(path), f"init.sh must exist at {path}" | |
| def test_init_script_readable(): | |
| root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | |
| path = os.path.join(root, "init.sh") | |
| with open(path, "r") as f: | |
| content = f.read() | |
| assert "#!/usr/bin/env bash" in content, "init.sh must have bash shebang" | |
| assert "run_tests" in content, "init.sh must define run_tests function" | |
| assert "validate_deps" in content, "init.sh must define validate_deps function" | |
| if __name__ == "__main__": | |
| test_init_script_exists() | |
| test_init_script_readable() | |
| print("All basic tests passed.") | |