Skip to content

Commit 6303bdc

Browse files
committed
chore: refactored load event
1 parent fe32522 commit 6303bdc

File tree

2 files changed

+235
-185
lines changed

2 files changed

+235
-185
lines changed

tests/functional/event_handler/conftest.py

+32
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import pytest
44

5+
from tests.functional.utils import load_event
6+
57

68
@pytest.fixture
79
def json_dump():
@@ -39,3 +41,33 @@ def validation_schema():
3941
@pytest.fixture
4042
def raw_event():
4143
return {"message": "hello hello", "username": "blah blah"}
44+
45+
46+
@pytest.fixture
47+
def gw_event():
48+
return load_event("apiGatewayProxyEvent.json")
49+
50+
51+
@pytest.fixture
52+
def gw_event_http():
53+
return load_event("apiGatewayProxyV2Event.json")
54+
55+
56+
@pytest.fixture
57+
def gw_event_alb():
58+
return load_event("albMultiValueQueryStringEvent.json")
59+
60+
61+
@pytest.fixture
62+
def gw_event_lambda_url():
63+
return load_event("lambdaFunctionUrlEventWithHeaders.json")
64+
65+
66+
@pytest.fixture
67+
def gw_event_vpc_lattice():
68+
return load_event("vpcLatticeV2EventWithHeaders.json")
69+
70+
71+
@pytest.fixture
72+
def gw_event_vpc_lattice_v1():
73+
return load_event("vpcLatticeEvent.json")

0 commit comments

Comments
 (0)