File tree Expand file tree Collapse file tree
src/usethis/_integrations
tests/usethis/_integrations Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# filename: schema.json
33# timestamp: 2025-01-13T20:41:41+00:00
44# using the command:
5- # datamodel-codegen --input tests\usethis\_integrations\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.11
5+ # datamodel-codegen --input tests\usethis\_integrations\bitbucket\schema.json --input-file-type jsonschema --output src\usethis\_integrations\bitbucket\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.10
66# ruff: noqa: ERA001
77# pyright: reportGeneralTypeIssues=false
88# plus manually add Definitions.scripts for type hinting
Original file line number Diff line number Diff line change 22# filename: schema.json
33# timestamp: 2024-12-13T02:06:43+00:00
44# using the command:
5- # datamodel-codegen --input tests\usethis\_integrations\pre_commit\schema.json --input-file-type jsonschema --output src\usethis\_integrations\pre_commit\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.11
5+ # datamodel-codegen --input tests\usethis\_integrations\pre_commit\schema.json --input-file-type jsonschema --output src\usethis\_integrations\pre_commit\schema.py --enum-field-as-literal all --field-constraints --use-double-quotes --use-union-operator --use-standard-collections --use-default-kwarg --output-model-type pydantic_v2.BaseModel --target-python-version 3.10
66# ruff: noqa: ERA001
77# pyright: reportGeneralTypeIssues=false
88# plus manually remove default for LocalRepo.repo
Original file line number Diff line number Diff line change @@ -32,4 +32,4 @@ def test_matches_schema_store(self):
3232
3333 def test_target_python_version (self ):
3434 # If this test fails, we should bump the version in the command in schema.py
35- assert Path (".python-version" ).read_text ().startswith ("3.11 " )
35+ assert Path (".python-version" ).read_text ().startswith ("3.10 " )
Original file line number Diff line number Diff line change @@ -33,4 +33,4 @@ def test_matches_schema_store(self):
3333
3434 def test_target_python_version (self ):
3535 # If this test fails, we should bump the version in the command in schema.py
36- assert Path (".python-version" ).read_text ().startswith ("3.11 " )
36+ assert Path (".python-version" ).read_text ().startswith ("3.10 " )
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ def test_empty(self, tmp_path: Path):
1818
1919 # Act
2020 with change_cwd (tmp_path ):
21- result = read_pyproject_toml ().values
21+ result = read_pyproject_toml ().value
2222
2323 # Assert
2424 assert result == {}
@@ -30,7 +30,7 @@ def test_single_map(self, tmp_path: Path):
3030
3131 # Act
3232 with change_cwd (tmp_path ):
33- result = read_pyproject_toml ().values
33+ result = read_pyproject_toml ().value
3434
3535 # Assert
3636 assert result == {"name" : "usethis" }
@@ -42,9 +42,9 @@ def test_invalid_toml(self, tmp_path: Path):
4242
4343 # Act, Assert
4444 with change_cwd (tmp_path ), pytest .raises (PyProjectTOMLDecodeError ):
45- read_pyproject_toml ().values
45+ read_pyproject_toml ().value
4646
4747 def test_missing (self , tmp_path : Path ):
4848 # Act, Assert
4949 with change_cwd (tmp_path ), pytest .raises (PyProjectTOMLNotFoundError ):
50- read_pyproject_toml ().values
50+ read_pyproject_toml ().value
You can’t perform that action at this time.
0 commit comments