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 188fd4a commit e949a16
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/version/commands/test_java.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"line": 3
},
{
"path": "src/application.properties",
"path": "application.properties",
"line": 2
}
]
Expand Down Expand Up @@ -131,8 +131,7 @@ def test_verify_version(self):
TEMPLATE_UPGRADE_VERSION_MARKDOWN.format(version),
encoding="utf-8",
)
properties_file_path = Path("src/application.properties")
Path("src").mkdir(parents=True, exist_ok=True)
properties_file_path = Path("application.properties")
properties_file_path.write_text(
TEMPLATE_UPGRADE_VERSION_WITH_VERSION_PROPERTIES.format(
version
Expand Down

0 comments on commit e949a16

Please sign in to comment.