Skip to content

Commit b2bd598

Browse files
committed
add test__exclude_common_contents__single__default_markers()
to make sure default marker arguments work as expected
1 parent a153b74 commit b2bd598

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

tests/test_ai_tutor.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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
372399
def specific_lines_2() -> Tuple[str]:
373400
"""Provides a tuple of specific lines to be inserted between common content blocks."""

0 commit comments

Comments
 (0)