Skip to content

Commit fbf3813

Browse files
test: add test to cover schema_pattern is None case
1 parent f66afbc commit fbf3813

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cz_base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ def questions(self):
1010
def message(self, answers: dict):
1111
return answers["commit"]
1212

13+
def schema_pattern(self) -> str | None:
14+
return None
15+
1316

1417
def test_base_raises_error(config):
1518
with pytest.raises(TypeError):
@@ -38,6 +41,11 @@ def test_schema(config):
3841
cz.schema()
3942

4043

44+
def test_validate_commit_message(config):
45+
cz = DummyCz(config)
46+
assert cz.validate_commit_message("test", None, False, [], 0) == (True, [])
47+
48+
4149
def test_info(config):
4250
cz = DummyCz(config)
4351
with pytest.raises(NotImplementedError):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy