Skip to content

Commit 564584a

Browse files
feat: adding openapi micro lambda support
1 parent 553e2c1 commit 564584a

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

tests/functional/event_handler/_pydantic/test_openapi_merge.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ def test_openapi_merge_on_conflict_last():
134134
assert schema["paths"]["/users"]["get"]["summary"] == "Get users from conflict_last"
135135

136136

137-
# =============================================================================
138-
# configure_openapi_merge (public API via resolver)
139-
# =============================================================================
140-
141-
142137
def test_configure_openapi_merge_and_get_schema():
143138
# GIVEN a resolver
144139
app = APIGatewayRestResolver()
@@ -196,11 +191,6 @@ def test_get_openapi_merge_json_schema_without_configure_raises():
196191
app.get_openapi_merge_json_schema()
197192

198193

199-
# =============================================================================
200-
# enable_swagger integration
201-
# =============================================================================
202-
203-
204194
def test_enable_swagger_uses_merged_schema():
205195
# GIVEN a resolver with configure_openapi_merge
206196
app = APIGatewayRestResolver()

tests/unit/event_handler/openapi/test_openapi_merge.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@
1616
MERGE_HANDLERS_PATH = Path(__file__).parents[3] / "functional/event_handler/_pydantic/merge_handlers"
1717

1818

19-
# =============================================================================
20-
# _discover_resolver_files
21-
# =============================================================================
22-
23-
2419
def 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-
4636
def 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-
7560
def 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-
9272
def test_load_resolver_file_not_found():
9373
with pytest.raises(FileNotFoundError):
9474
_load_resolver(Path("/non/existent/file.py"), "app")

0 commit comments

Comments
 (0)