Skip to content

Commit 65645e0

Browse files
committed
style: format the code through the latest black
1 parent 732133e commit 65645e0

File tree

4 files changed

+32
-12
lines changed

4 files changed

+32
-12
lines changed

tests/commands/test_check_command.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,11 @@ def test_check_conventional_commit_succeeds(mocker, capsys):
125125

126126

127127
@pytest.mark.parametrize(
128-
"commit_msg", ("feat!(lang): removed polish language", "no conventional commit",),
128+
"commit_msg",
129+
(
130+
"feat!(lang): removed polish language",
131+
"no conventional commit",
132+
),
129133
)
130134
def test_check_no_conventional_commit(commit_msg, config, mocker, tmpdir):
131135
with pytest.raises(InvalidCommitMessageError):

tests/test_bump_find_version.py

+11-7
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,20 @@ def test_generate_version(test_input, expected):
8282

8383

8484
@pytest.mark.parametrize(
85-
"test_input,expected", itertools.chain(local_versions),
85+
"test_input,expected",
86+
itertools.chain(local_versions),
8687
)
8788
def test_generate_version_local(test_input, expected):
8889
current_version = test_input[0]
8990
increment = test_input[1]
9091
prerelease = test_input[2]
9192
is_local_version = True
92-
assert generate_version(
93-
current_version,
94-
increment=increment,
95-
prerelease=prerelease,
96-
is_local_version=is_local_version,
97-
) == Version(expected)
93+
assert (
94+
generate_version(
95+
current_version,
96+
increment=increment,
97+
prerelease=prerelease,
98+
is_local_version=is_local_version,
99+
)
100+
== Version(expected)
101+
)

tests/test_cli.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ def test_commitizen_excepthook(capsys):
7373
def test_commitizen_debug_excepthook(capsys):
7474
with pytest.raises(SystemExit) as excinfo:
7575
cli.commitizen_excepthook(
76-
NotAGitProjectError, NotAGitProjectError(), "", debug=True,
76+
NotAGitProjectError,
77+
NotAGitProjectError(),
78+
"",
79+
debug=True,
7780
)
7881

7982
assert excinfo.type == SystemExit

tests/test_cz_conventional_commits.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,18 @@ def test_info(config):
144144
@pytest.mark.parametrize(
145145
("commit_message", "expected_message"),
146146
[
147-
("test(test_scope): this is test msg", "this is test msg",),
148-
("test(test_scope)!: this is test msg", "this is test msg",),
149-
("test!(test_scope): this is test msg", "",),
147+
(
148+
"test(test_scope): this is test msg",
149+
"this is test msg",
150+
),
151+
(
152+
"test(test_scope)!: this is test msg",
153+
"this is test msg",
154+
),
155+
(
156+
"test!(test_scope): this is test msg",
157+
"",
158+
),
150159
],
151160
)
152161
def test_process_commit(commit_message, expected_message, config):

0 commit comments

Comments
 (0)