Skip to content

Commit 8e31687

Browse files
Pass tests
1 parent 550082e commit 8e31687

5 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/usethis/_integrations/bitbucket/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

src/usethis/_integrations/pre_commit/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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

tests/usethis/_integrations/bitbucket/test_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

tests/usethis/_integrations/pre_commit/test_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")

tests/usethis/_integrations/pyproject/test_io_.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)