Skip to content

Commit 5cbcce0

Browse files
committed
fix tests
1 parent 1e64e57 commit 5cbcce0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

hatch_build/tests/test_cli_model.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
from pydantic import BaseModel
99

10+
from hatch_build import __version__
1011
from hatch_build.cli import _initlog, hatchling, parse_extra_args_model
1112

1213

@@ -141,8 +142,8 @@ def test_get_arg_from_model(self):
141142

142143
stderr = mock_stderr.getvalue()
143144
for text in (
144-
"[sdist]\ndist/hatch_build-0.3.1.tar.gz",
145-
"[wheel]\ndist/hatch_build-0.3.1-py3-none-any.whl",
145+
f"[sdist]\ndist/hatch_build-{__version__}.tar.gz",
146+
f"[wheel]\ndist/hatch_build-{__version__}-py3-none-any.whl",
146147
"[hatch_build.cli][WARNING]: Only lists of str, int, float, or bool are supported - field `submodel_list` got <class 'test_cli_model.SubModel'>",
147148
"[hatch_build.cli][WARNING]: Only dicts with str, int, float, bool, or enum values are supported - field `submodel_dict` got value type <class 'test_cli_model.SubModel'>",
148149
"[hatch_build.cli][WARNING]: Only Literal types of str, int, float, or bool are supported - field `unsupported_literal` got (b'test',)",

0 commit comments

Comments
 (0)