Skip to content

Commit 7f5cdd7

Browse files
committed
Add snapshot test to replace mock coverage
1 parent f159fc2 commit 7f5cdd7

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

end_to_end_tests/__snapshots__/test_end_to_end.ambr

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
# serializer version: 1
2+
# name: test_documents_with_errors[bad-status-code]
3+
'''
4+
Generating /test-documents-with-errors
5+
Warning(s) encountered while generating. Client was generated, but some pieces may be missing
6+
7+
WARNING parsing GET / within default.
8+
9+
Invalid response status code abcdef (not a valid HTTP status code), response will be omitted from generated client
10+
11+
12+
If you believe this was a mistake or this tool is missing a feature you need, please open an issue at https://github.com/openapi-generators/openapi-python-client/issues/new/choose
13+
14+
'''
15+
# ---
216
# name: test_documents_with_errors[circular-body-ref]
317
'''
418
Generating /test-documents-with-errors
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
openapi: "3.1.0"
2+
info:
3+
title: "There's something wrong with me"
4+
version: "0.1.0"
5+
paths:
6+
"/":
7+
get:
8+
responses:
9+
"abcdef":
10+
description: "Successful Response"
11+
content:
12+
"application/json":
13+
schema:
14+
const: "Why have a fixed response? I dunno"

0 commit comments

Comments
 (0)