Skip to content

Commit e107411

Browse files
committed
style(tests): format tests
1 parent ba58b22 commit e107411

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

tests/commands/test_check_command.py

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

126126

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

tests/test_cz_conventional_commits.py

+6-14
Original file line numberDiff line numberDiff line change
@@ -132,21 +132,13 @@ def test_info(config):
132132
assert isinstance(info, str)
133133

134134

135-
@pytest.mark.parametrize(("commit_message", "expected_message"),
135+
@pytest.mark.parametrize(
136+
("commit_message", "expected_message"),
136137
[
137-
(
138-
"test(test_scope): this is test msg",
139-
"this is test msg",
140-
),
141-
(
142-
"test(test_scope)!: this is test msg",
143-
"this is test msg",
144-
),
145-
(
146-
"test!(test_scope): this is test msg",
147-
"",
148-
),
149-
]
138+
("test(test_scope): this is test msg", "this is test msg",),
139+
("test(test_scope)!: this is test msg", "this is test msg",),
140+
("test!(test_scope): this is test msg", "",),
141+
],
150142
)
151143
def test_process_commit(commit_message, expected_message, config):
152144
conventional_commits = ConventionalCommitsCz(config)

0 commit comments

Comments
 (0)