chore: 添加虚拟环境到仓库

- 添加 backend_service/venv 虚拟环境
- 包含所有Python依赖包
- 注意:虚拟环境约393MB,包含12655个文件
This commit is contained in:
2025-12-03 10:19:25 +08:00
parent a6c2027caa
commit c4f851d387
12655 changed files with 3009376 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
from collections.abc import Mapping
from pathlib import Path
import pytest
from jsonschema_specifications import REGISTRY
def test_it_contains_metaschemas():
schema = REGISTRY.contents("http://json-schema.org/draft-07/schema#")
assert isinstance(schema, Mapping)
assert schema["$id"] == "http://json-schema.org/draft-07/schema#"
assert schema["title"] == "Core schema meta-schema"
def test_it_is_crawled():
assert REGISTRY.crawl() == REGISTRY
@pytest.mark.parametrize(
"ignored_relative_path",
["schemas/.DS_Store", "schemas/draft7/.DS_Store"],
)
def test_it_copes_with_dotfiles(ignored_relative_path):
"""
Ignore files like .DS_Store if someone has actually caused one to exist.
We test here through the private interface as of course the global has
already loaded our schemas.
"""
import jsonschema_specifications
package = Path(jsonschema_specifications.__file__).parent
ignored = package / ignored_relative_path
ignored.touch()
try:
list(jsonschema_specifications._schemas())
finally:
ignored.unlink()