Download fixtures/pattern_lab/tests/test_legacy.py from tailot/codex-python: direct link, hf CLI and curl.
- Browser
- Download file 390 Bytes
-
https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_legacy.py
- Command line
-
hf download hf://datasets/tailot/codex-python/fixtures/pattern_lab/tests/test_legacy.py
-
curl -L -o test_legacy.py https://huggingface.co/datasets/tailot/codex-python/resolve/main/fixtures/pattern_lab/tests/test_legacy.py
390 Bytes
| """Tests for the two readers in src.legacy.""" | |
| from pathlib import Path | |
| from src.legacy import note_path, read_size | |
| def test_read_size_reports_the_file(tmp_path) -> None: | |
| path = tmp_path / "note.txt" | |
| path.write_text("abcd", encoding="utf-8") | |
| assert read_size(str(path)) == 4 | |
| def test_note_path_names_the_file() -> None: | |
| assert Path(note_path("one")).name == "one.txt" | |