mirror of
https://github.com/katanemo/plano.git
synced 2026-04-25 08:46:24 +02:00
fix black formatting for Python test files
This commit is contained in:
parent
c4634d0034
commit
74f9b44378
2 changed files with 103 additions and 50 deletions
|
|
@ -52,11 +52,15 @@ class TestCheckVersionStatus:
|
|||
assert status["is_outdated"] is False
|
||||
assert status["message"] is None
|
||||
|
||||
@pytest.mark.parametrize("current,latest", [
|
||||
("0.4.1", "1.0.0"), # major
|
||||
("0.4.1", "0.5.0"), # minor
|
||||
("0.4.1", "0.4.2"), # patch
|
||||
], ids=["major", "minor", "patch"])
|
||||
@pytest.mark.parametrize(
|
||||
"current,latest",
|
||||
[
|
||||
("0.4.1", "1.0.0"), # major
|
||||
("0.4.1", "0.5.0"), # minor
|
||||
("0.4.1", "0.4.2"), # patch
|
||||
],
|
||||
ids=["major", "minor", "patch"],
|
||||
)
|
||||
def test_version_outdated(self, current, latest):
|
||||
status = check_version_status(current, latest)
|
||||
assert status["is_outdated"] is True
|
||||
|
|
@ -150,4 +154,3 @@ class TestVersionCheckIntegration:
|
|||
status = check_version_status(current_version, latest)
|
||||
|
||||
assert status["is_outdated"] is False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue