Skip to content

Commit

Permalink
Add snapshot test to replace mock coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dbanty committed Dec 24, 2024
1 parent f159fc2 commit 7f5cdd7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions end_to_end_tests/__snapshots__/test_end_to_end.ambr
Original file line number Diff line number Diff line change
@@ -1,4 +1,18 @@
# serializer version: 1
# name: test_documents_with_errors[bad-status-code]
'''
Generating /test-documents-with-errors
Warning(s) encountered while generating. Client was generated, but some pieces may be missing

WARNING parsing GET / within default.

Invalid response status code abcdef (not a valid HTTP status code), response will be omitted from generated client


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

'''
# ---
# name: test_documents_with_errors[circular-body-ref]
'''
Generating /test-documents-with-errors
Expand Down
14 changes: 14 additions & 0 deletions end_to_end_tests/documents_with_errors/bad-status-code.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
openapi: "3.1.0"
info:
title: "There's something wrong with me"
version: "0.1.0"
paths:
"/":
get:
responses:
"abcdef":
description: "Successful Response"
content:
"application/json":
schema:
const: "Why have a fixed response? I dunno"

0 comments on commit 7f5cdd7

Please sign in to comment.