talos-access / tests /test_basic.py
Greg
Claude Opus 4.7 (1M context)
Preparar despliegue en fly.io: monolito dockerizado + seeder demo
6aa6081
Raw History Blame Contribute Delete
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.")