Skip to content

Commit

Permalink
Add test for get_current_version
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanTolksdorf committed Sep 28, 2023
1 parent 10d2fb9 commit 188fd4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pontos/version/commands/_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def _update_version_files(self, new_version) -> List[Path]:
)

content = "".join(lines)
with open(Path.cwd() / file_path, "w") as output_file_handle:
with (Path.cwd() / file_path).open("w") as output_file_handle:
output_file_handle.write(content)
changed_files.append(Path(file_config["path"]))
return changed_files
Expand Down
2 changes: 1 addition & 1 deletion tests/version/commands/test_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def test_verify_version(self):
encoding="utf-8",
)
properties_file_path = Path("src/application.properties")
properties_file_path.mkdir(parents=True, exist_ok=True)
Path("src").mkdir(parents=True, exist_ok=True)
properties_file_path.write_text(
TEMPLATE_UPGRADE_VERSION_WITH_VERSION_PROPERTIES.format(
version
Expand Down

0 comments on commit 188fd4a

Please sign in to comment.