File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -546,12 +546,10 @@ def test_match(conventional_commit):
546546
547547
548548def test_match_multiline (conventional_commit ):
549- match = conventional_commit .match (
550- """test(scope): subject line
549+ match = conventional_commit .match ("""test(scope): subject line
551550
552551body copy
553- """
554- )
552+ """ )
555553 assert isinstance (match , re .Match )
556554 assert match .group ("type" ) == "test"
557555 assert match .group ("scope" ) == "(scope)"
@@ -571,12 +569,10 @@ def test_match_dots(conventional_commit):
571569
572570
573571def test_match_invalid_type (conventional_commit ):
574- match = conventional_commit .match (
575- """invalid(scope): subject line
572+ match = conventional_commit .match ("""invalid(scope): subject line
576573
577574body copy
578- """
579- )
575+ """ )
580576 assert isinstance (match , re .Match )
581577 assert match .group ("type" ) is None
582578 assert match .group ("scope" ) == ""
You can’t perform that action at this time.
0 commit comments