1616MERGE_HANDLERS_PATH = Path (__file__ ).parents [3 ] / "functional/event_handler/_pydantic/merge_handlers"
1717
1818
19- # =============================================================================
20- # _discover_resolver_files
21- # =============================================================================
22-
23-
2419def test_discover_resolver_files_path_not_exists ():
2520 with pytest .raises (FileNotFoundError , match = "Path does not exist" ):
2621 _discover_resolver_files ("/non/existent/path" , "**/*.py" , [], "app" )
@@ -38,11 +33,6 @@ def test_discover_resolver_files_multiple_patterns():
3833 assert "orders_handler.py" in filenames
3934
4035
41- # =============================================================================
42- # _file_has_resolver
43- # =============================================================================
44-
45-
4636def test_file_has_resolver_syntax_error (tmp_path : Path ):
4737 bad_file = tmp_path / "bad.py"
4838 bad_file .write_text ("def broken(" )
@@ -67,11 +57,6 @@ def test_file_has_resolver_found(tmp_path: Path):
6757 assert _file_has_resolver (handler_file , "app" ) is True
6858
6959
70- # =============================================================================
71- # _is_excluded
72- # =============================================================================
73-
74-
7560def test_is_excluded_with_directory_pattern ():
7661 root = Path ("/project" )
7762 assert _is_excluded (Path ("/project/tests/handler.py" ), root , ["**/tests/**" ]) is True
@@ -84,11 +69,6 @@ def test_is_excluded_with_file_pattern():
8469 assert _is_excluded (Path ("/project/src/handler.py" ), root , ["**/test_*.py" ]) is False
8570
8671
87- # =============================================================================
88- # _load_resolver
89- # =============================================================================
90-
91-
9272def test_load_resolver_file_not_found ():
9373 with pytest .raises (FileNotFoundError ):
9474 _load_resolver (Path ("/non/existent/file.py" ), "app" )
0 commit comments