Download tests/test_projects.py from smlflg/AIOS-Cockpit: direct link, hf CLI and curl.
- Browser
- Download file 630 Bytes
-
https://huggingface.co/smlflg/AIOS-Cockpit/resolve/main/tests/test_projects.py
- Command line
-
hf download hf://smlflg/AIOS-Cockpit/tests/test_projects.py
-
curl -L -o test_projects.py https://huggingface.co/smlflg/AIOS-Cockpit/resolve/main/tests/test_projects.py
630 Bytes
| from pathlib import Path | |
| from aios_cockpit.projects import scan_projects | |
| def test_scan_projects_detects_non_git_project(tmp_path: Path) -> None: | |
| project = tmp_path / "PromptGarage" | |
| project.mkdir() | |
| (project / "README.md").write_text("# PromptGarage\n\nPrompt memory.", encoding="utf-8") | |
| (project / "pyproject.toml").write_text("[project]\nname='x'\n", encoding="utf-8") | |
| cards = scan_projects(tmp_path) | |
| assert len(cards) == 1 | |
| assert cards[0].name == "PromptGarage" | |
| assert cards[0].role == "source-of-truth" | |
| assert cards[0].category == "knowledge" | |
| assert "python" in cards[0].tech_stack | |