Skip to content

Commit fbe0c0e

Browse files
committed
fix: use new name for hook in tests
1 parent ad9730a commit fbe0c0e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/test_metadata_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# SPDX-License-Identifier: MIT
44
import pytest
55

6-
from hatch_nodejs_version.metadata_source import NodeJSMetadataSource
6+
from hatch_nodejs_version.metadata_source import NodeJSMetadataHook
77

88

99
class TestMetadata:
@@ -19,9 +19,9 @@ def test_metadata_from_package(self, project, alt_package_json, pyproject_field)
1919
# Create a simple project
2020
(project / "pyproject.toml").write_text(
2121
f"""
22-
[build - system]
22+
[build-backend]
2323
requires = ["hatchling", "hatch-vcs"]
24-
build - backend = "hatchling.build"
24+
build-backend = "hatchling.build"
2525
[project]
2626
name = "my-app"
2727
version = "0.0.0"
@@ -65,7 +65,7 @@ def test_metadata_from_package(self, project, alt_package_json, pyproject_field)
6565
"""
6666
)
6767
config = {} if alt_package_json is None else {"path": alt_package_json}
68-
metadata_source = NodeJSMetadataSource(project, config=config)
68+
metadata_source = NodeJSMetadataHook(project, config=config)
6969

7070
metadata = {}
7171
metadata_source.update(metadata)

tests/test_version_config.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def test_version_from_package(
7272
# Create a simple project
7373
(project / "pyproject.toml").write_text(
7474
"""
75-
[build - system]
75+
[build-system]
7676
requires = ["hatchling", "hatch-vcs"]
77-
build - backend = "hatchling.build"
77+
build-backend = "hatchling.build"
7878
[project]
7979
name = "my-app"
8080
dynamic = ["version"]
@@ -110,9 +110,9 @@ def test_version_to_package(
110110
package_json = "package.json" if alt_package_json is None else alt_package_json
111111
(project / "pyproject.toml").write_text(
112112
"""
113-
[build - system]
113+
[build-system]
114114
requires = ["hatchling", "hatch-vcs"]
115-
build - backend = "hatchling.build"
115+
build-backend = "hatchling.build"
116116
[project]
117117
name = "my-app"
118118
dynamic = ["version"]

0 commit comments

Comments
 (0)