Download tests/ci/property/test_text_parser_property.py from jun2024/fc: direct link, hf CLI and curl.
- Browser
- Download file 492 Bytes
-
https://huggingface.co/spaces/jun2024/fc/resolve/main/tests/ci/property/test_text_parser_property.py
- Command line
-
hf download hf://spaces/jun2024/fc/tests/ci/property/test_text_parser_property.py
-
curl -L -o test_text_parser_property.py https://huggingface.co/spaces/jun2024/fc/resolve/main/tests/ci/property/test_text_parser_property.py
492 Bytes
| """Property-based guards for text parser robustness.""" | |
| from __future__ import annotations | |
| from hypothesis import given, settings | |
| from hypothesis import strategies as st | |
| from apps.client.services.text_parser import parse_client_text, parse_multiple_clients_text | |
| def test_text_parser_never_raises_for_arbitrary_input(raw_text: str) -> None: | |
| parse_client_text(raw_text) | |
| parse_multiple_clients_text(raw_text) | |