Skip to content

Commit b598a8d

Browse files
committed
✅ Update tests for OpenAPI header param models with convert_underscore
1 parent 2944d1f commit b598a8d

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/test_tutorial/test_header_param_models/test_tutorial001.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,13 @@ def test_openapi_schema(client: TestClient):
129129
"schema": {"type": "string", "title": "Host"},
130130
},
131131
{
132-
"name": "save_data",
132+
"name": "save-data",
133133
"in": "header",
134134
"required": True,
135135
"schema": {"type": "boolean", "title": "Save Data"},
136136
},
137137
{
138-
"name": "if_modified_since",
138+
"name": "if-modified-since",
139139
"in": "header",
140140
"required": False,
141141
"schema": IsDict(
@@ -171,7 +171,7 @@ def test_openapi_schema(client: TestClient):
171171
),
172172
},
173173
{
174-
"name": "x_tag",
174+
"name": "x-tag",
175175
"in": "header",
176176
"required": False,
177177
"schema": {

tests/test_tutorial/test_header_param_models/test_tutorial002.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ def test_openapi_schema(client: TestClient):
140140
"schema": {"type": "string", "title": "Host"},
141141
},
142142
{
143-
"name": "save_data",
143+
"name": "save-data",
144144
"in": "header",
145145
"required": True,
146146
"schema": {"type": "boolean", "title": "Save Data"},
147147
},
148148
{
149-
"name": "if_modified_since",
149+
"name": "if-modified-since",
150150
"in": "header",
151151
"required": False,
152152
"schema": IsDict(
@@ -182,7 +182,7 @@ def test_openapi_schema(client: TestClient):
182182
),
183183
},
184184
{
185-
"name": "x_tag",
185+
"name": "x-tag",
186186
"in": "header",
187187
"required": False,
188188
"schema": {

0 commit comments

Comments
 (0)