Skip to content

Commit

Permalink
test(tests): format code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-W committed Feb 11, 2023
1 parent 8ac190e commit a2cad36
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions tests/test_bump_find_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,13 @@ def test_generate_version(test_input, expected):
prerelease = test_input[2]
prerelease_offset = test_input[3]
devrelease = test_input[4]
assert (
generate_version(
current_version,
increment=increment,
prerelease=prerelease,
prerelease_offset=prerelease_offset,
devrelease=devrelease,
)
== Version(expected)
)
assert generate_version(
current_version,
increment=increment,
prerelease=prerelease,
prerelease_offset=prerelease_offset,
devrelease=devrelease,
) == Version(expected)


@pytest.mark.parametrize(
Expand All @@ -114,14 +111,11 @@ def test_generate_version_local(test_input, expected):
prerelease_offset = test_input[3]
devrelease = test_input[4]
is_local_version = True
assert (
generate_version(
current_version,
increment=increment,
prerelease=prerelease,
prerelease_offset=prerelease_offset,
devrelease=devrelease,
is_local_version=is_local_version,
)
== Version(expected)
)
assert generate_version(
current_version,
increment=increment,
prerelease=prerelease,
prerelease_offset=prerelease_offset,
devrelease=devrelease,
is_local_version=is_local_version,
) == Version(expected)

0 comments on commit a2cad36

Please sign in to comment.