@@ -162,13 +162,64 @@ def test_is_conventional__with_scope():
162162 assert format .is_conventional (input )
163163
164164
165- def test_is_conventional__body_multiline ():
165+ def test_is_conventional__body_multiline_not_strict ():
166166 input = """feat(scope): message
167167
168168 more message
169169 """
170170
171- assert format .is_conventional (input )
171+ assert format .is_conventional (input , is_strict = False )
172+
173+
174+ def test_is_conventional__body_multiline_no_body_not_strict ():
175+ input = """feat(scope): message
176+
177+ """
178+ assert format .is_conventional (input , is_strict = False )
179+
180+
181+ def test_is_conventional__body_multiline_body_bad_type_strict ():
182+ input = """wrong: message
183+
184+ more_message
185+ """
186+
187+ assert not format .is_conventional (input , is_strict = True )
188+
189+
190+ def test_is_conventional__bad_body_multiline_not_strict ():
191+ input = """feat(scope): message
192+ more message
193+ """
194+
195+ assert format .is_conventional (input , is_strict = False )
196+
197+
198+ def test_is_conventional__bad_body_multiline_strict ():
199+ input = """feat(scope): message
200+ more message
201+ """
202+
203+ assert not format .is_conventional (input , is_strict = True )
204+
205+
206+ def test_is_conventional__body_multiline_strict ():
207+ input = """feat(scope): message
208+
209+ more message
210+ """
211+
212+ assert format .is_conventional (input , is_strict = True )
213+
214+
215+ def test_is_conventional__bad_body_multiline_paragraphs_strict ():
216+ input = """feat(scope): message
217+ more message
218+
219+ more body message
220+ """
221+
222+ assert not format .is_conventional (input , is_strict = True )
172223
173224
174225@pytest .mark .parametrize ("char" , ['"' , "'" , "`" , "#" , "&" ])
0 commit comments