File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -368,6 +368,33 @@ def test__exclude_common_contents__single(
368368 assert end_marker .strip () not in result
369369
370370
371+ def test__exclude_common_contents__single__default_markers (
372+ readme_content_single :str ,
373+ start_marker :str ,
374+ end_marker :str ,
375+ specific_lines :Tuple [str ],
376+ common_lines :Tuple [str ],
377+ ):
378+ result = ai_tutor .exclude_common_contents (
379+ readme_content = readme_content_single ,
380+ )
381+
382+ for line in specific_lines :
383+ assert line .strip () in result , ("\n "
384+ f"Could not find line: { line } \n "
385+ f"in result: { result } ."
386+ )
387+
388+ for line in common_lines :
389+ assert line .strip () not in result , ("\n "
390+ f"Found line: { line } \n "
391+ f"in result: { result } ."
392+ )
393+
394+ assert start_marker .strip () not in result
395+ assert end_marker .strip () not in result
396+
397+
371398@pytest .fixture
372399def specific_lines_2 () -> Tuple [str ]:
373400 """Provides a tuple of specific lines to be inserted between common content blocks."""
You can’t perform that action at this time.
0 commit comments