@@ -365,9 +365,9 @@ async def test_filter_by_file_path_glob(
365365 setup_multi_lang_codebase (test_codebase_root )
366366 await app .update (report_to_stdout = False )
367367
368- results = await query_codebase ("function" , limit = 50 , paths = ["*/ lib/*" ])
368+ results = await query_codebase ("function" , limit = 50 , paths = ["lib/*" ])
369369 assert len (results ) > 0
370- assert all ("/ lib/" in r . file_path for r in results )
370+ assert all (r . file_path . startswith ( " lib/") for r in results )
371371
372372 @pytest .mark .asyncio (loop_scope = "session" )
373373 async def test_filter_by_file_path_wildcard_extension (
@@ -390,12 +390,10 @@ async def test_filter_by_both_language_and_file_path(
390390 await app .update (report_to_stdout = False )
391391
392392 # Filter for Python files under lib/
393- results = await query_codebase (
394- "function" , limit = 50 , languages = ["python" ], paths = ["*/lib/*" ]
395- )
393+ results = await query_codebase ("function" , limit = 50 , languages = ["python" ], paths = ["lib/*" ])
396394 assert len (results ) > 0
397395 assert all (r .language == "python" for r in results )
398- assert all ("/ lib/" in r . file_path for r in results )
396+ assert all (r . file_path . startswith ( " lib/") for r in results )
399397
400398 @pytest .mark .asyncio (loop_scope = "session" )
401399 async def test_no_filter_returns_all_languages (
0 commit comments