Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /Consiliency_treesitter-chunker /tests /test_grammar_source_validation.py
| """Regression tests for grammar source validation.""" | |
| import pytest | |
| from chunker.grammar.source_validation import validate_grammar_source | |
| def test_rejects_untrusted_grammar_source(url): | |
| with pytest.raises(ValueError): | |
| validate_grammar_source(url) | |
| def test_accepts_allowlisted_github_repository(): | |
| assert ( | |
| validate_grammar_source("https://github.com/tree-sitter/tree-sitter-python") | |
| == "https://github.com/tree-sitter/tree-sitter-python" | |
| ) | |
Xet Storage Details
- Size:
- 682 Bytes
- Xet hash:
- 1f872ec00e38857ad927af942a36c6f993c45d75dd10e304c768631edac6c9e2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.