File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 55including filtering patterns and subpaths.
66"""
77
8+ import re
89from pathlib import Path
910from typing import TypedDict
1011
@@ -214,7 +215,9 @@ def test_include_ignore_patterns(
214215 summary , structure , content = ingest_query (sample_query )
215216
216217 assert "Repository: test_user/test_repo" in summary
217- assert f"Files analyzed: { pattern_scenario ["expected_num_files" ]} " in summary
218+ num_files_regex = re .compile (r"^Files analyzed: (\d+)$" , re .MULTILINE )
219+ assert (num_files_match := num_files_regex .search (summary )) is not None
220+ assert int (num_files_match .group (1 )) == pattern_scenario ["expected_num_files" ]
218221
219222 # Check presence of key files in the content
220223 for expected_content_item in pattern_scenario ["expected_content" ]:
You can’t perform that action at this time.
0 commit comments