Download tests/test_project_setup.py from polyHedra/PolyHedra: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/spaces/polyHedra/PolyHedra/resolve/main/tests/test_project_setup.py
- Command line
-
hf download hf://spaces/polyHedra/PolyHedra/tests/test_project_setup.py
-
curl -L -o test_project_setup.py https://huggingface.co/spaces/polyHedra/PolyHedra/resolve/main/tests/test_project_setup.py
735 Bytes
| """Basic smoke tests to verify project setup.""" | |
| import sys | |
| from pathlib import Path | |
| def test_imports(): | |
| """Test that basic imports work.""" | |
| import polyhedra | |
| assert polyhedra.__version__ == "8.0.0" | |
| def test_project_structure(): | |
| """Verify expected directories exist.""" | |
| root = Path(__file__).parent.parent | |
| assert (root / "src" / "polyhedra").exists() | |
| assert (root / "src" / "polyhedra" / "services").exists() | |
| assert (root / "src" / "polyhedra" / "schemas").exists() | |
| assert (root / "tests").exists() | |
| assert (root / "pyproject.toml").exists() | |
| def test_python_version(): | |
| """Ensure Python version meets requirements.""" | |
| assert sys.version_info >= (3, 11), "Python 3.11+ required" | |