Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jwodder committed Mar 16, 2024
1 parent 76d3de6 commit a9e9121
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion test/data/repos/errors/hatch-no-tag.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "NoTagError",
"message": "`git describe` could not find a tag"
"message": "`git describe --tags '--exclude=*'` could not find a tag"
}
2 changes: 1 addition & 1 deletion test/data/repos/errors/no-tag.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"type": "NoTagError",
"message": "`git describe` could not find a tag"
"message": "`git describe --tags '--exclude=*'` could not find a tag"
}
4 changes: 2 additions & 2 deletions test/data/repos/git/default-version-onbuild-write.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"version": "0.0.0+error",
"next_version": {
"type": "NoTagError",
"message": "`git describe` could not find a tag"
"message": "`git describe --tags '--match=v*'` could not find a tag"
},
"logmsgs": [
{
"level": "ERROR",
"message": "NoTagError: `git describe` could not find a tag"
"message": "NoTagError: `git describe --tags '--match=v*'` could not find a tag"
},
{
"level": "INFO",
Expand Down
4 changes: 2 additions & 2 deletions test/data/repos/git/default-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"version": "0.0.0+error",
"next_version": {
"type": "NoTagError",
"message": "`git describe` could not find a tag"
"message": "`git describe --tags` could not find a tag"
},
"logmsgs": [
{
"level": "ERROR",
"message": "NoTagError: `git describe` could not find a tag"
"message": "NoTagError: `git describe --tags` could not find a tag"
},
{
"level": "INFO",
Expand Down
2 changes: 1 addition & 1 deletion test/test_methods/test_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def test_describe_git_no_tag(tmp_path: Path) -> None:
shutil.unpack_archive(DATA_DIR / "repos" / "git" / "default-tag.zip", tmp_path)
with pytest.raises(NoTagError) as excinfo:
describe_git(project_dir=tmp_path, params={})
assert str(excinfo.value) == "`git describe` could not find a tag"
assert str(excinfo.value) == "`git describe --tags` could not find a tag"


@needs_git
Expand Down

0 comments on commit a9e9121

Please sign in to comment.