8000 Remove faulty test case. · micha91/openapi-python-client@2f196ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 2f196ac

Browse files
committed
Remove faulty test case.
Arrays of files are being tested in other endpoints, and this one was slightly malformed.
1 parent d24b3e5 commit 2f196ac

File tree

6 files changed

+0
-335
lines changed

6 files changed

+0
-335
lines changed

end_to_end_tests/baseline_openapi_3.0.json

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -476,55 +476,6 @@
476476
}
477477
}
478478
},
479-
"/tests/upload/multiple-files-in-object": {
480-
"post": {
481-
"tags": [
482-
"tests"
483-
],
484-
"summary": "Array of files in object",
485-
"description": "Upload an array of files as part of an object",
486-
"operationId": "upload_array_of_files_in_object_tests_upload_post",
487-
"parameters": [],
488-
"requestBody": {
489-
"content": {
490-
"multipart/form-data": {
491-
"schema": {
492-
"type" : "object",
493-
"files" : {
494-
"type" : "array",
495-
"items" : {
496-
"type" : "string",
497-
"description" : "attachments content",
498-
"format" : "binary"
499-
}
500-
}
501-
}
502-
}
503-
},
504-
"required": true
505-
},
506-
"responses": {
507-
"200": {
508-
"description": "Successful Response",
509-
"content": {
510-
"application/json": {
511-
"schema": {}
512-
}
513-
}
514-
},
515-
"422": {
516-
"description": "Validation Error",
517-
"content": {
518-
"application/json": {
519-
"schema": {
520-
"$ref": "#/components/schemas/HTTPValidationError"
521-
}
522-
}
523-
}
524-
}
525-
}
526-
}
527-
},
528479
"/tests/json_body": {
529480
"post": {
530481
"tags": [

end_to_end_tests/baseline_openapi_3.1.yaml

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -463,55 +463,6 @@ info:
463463
}
464464
}
465465
},
466-
"/tests/upload/multiple-files-in-object": {
467-
"post": {
468-
"tags": [
469-
"tests"
470-
],
471-
"summary": "Array of files in object",
10000
472-
"description": "Upload an array of files as part of an object",
473-
"operationId": "upload_array_of_files_in_object_tests_upload_post",
474-
"parameters": [ ],
475-
"requestBody": {
476-
"content": {
477-
"multipart/form-data": {
478-
"schema": {
479-
"type": "object",
480-
"files": {
481-
"type": "array",
482-
"items": {
483-
"type": "string",
484-
"description": "attachments content",
485-
"format": "binary"
486-
}
487-
}
488-
}
489-
}
490-
},
491-
"required": true
492-
},
493-
"responses": {
494-
"200": {
495-
"description": "Successful Response",
496-
"content": {
497-
"application/json": {
498-
"schema": { }
499-
}
500-
}
501-
},
502-
"422": {
503-
"description": "Validation Error",
504-
"content": {
505-
"application/json": {
506-
"schema": {
507-
"$ref": "#/components/schemas/HTTPValidationError"
508-
}
509-
}
510-
}
511-
}
512-
}
513-
}
514-
},
515466
"/tests/json_body": {
516467
"post": {
517468
"tags": [

end_to_end_tests/custom-templates-golden-record/my_test_api_client/api/tests/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
test_inline_objects,
2121
token_with_cookie_auth_token_with_cookie_get,
2222
unsupported_content_tests_unsupported_content_get,
23-
upload_array_of_files_in_object_tests_upload_post,
2423
upload_file_tests_upload_post,
2524
upload_multiple_files_tests_upload_post,
2625
)
@@ -90,13 +89,6 @@ def upload_multiple_files_tests_upload_post(cls) -> types.ModuleType:
9089
"""
9190
return upload_multiple_files_tests_upload_post
9291

93-
@classmethod
94-
def upload_array_of_files_in_object_tests_upload_post(cls) -> types.ModuleType:
95-
"""
96-
Upload an array of files as part of an object
97-
"""
98-
return upload_array_of_files_in_object_tests_upload_post
99-
10092
@classmethod
10193
def json_body_tests_json_body_post(cls) -> types.ModuleType:
10294
"""

end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_array_of_files_in_object_tests_upload_post.py

Lines changed: 0 additions & 172 deletions
This file was deleted.

end_to_end_tests/golden-record/my_test_api_client/models/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@
8787
)
8888
from .test_inline_objects_body import TestInlineObjectsBody
8989
from .test_inline_objects_response_200 import TestInlineObjectsResponse200
90-
from .upload_array_of_files_in_object_tests_upload_post_body import UploadArrayOfFilesInObjectTestsUploadPostBody
9190
from .validation_error import ValidationError
9291

9392
__all__ = (
@@ -168,6 +167,5 @@
168167
"PostResponsesUnionsSimpleBeforeComplexResponse200AType1",
169168
"TestInlineObjectsBody",
170169
"TestInlineObjectsResponse200",
171-
"UploadArrayOfFilesInObjectTestsUploadPostBody",
172170
"ValidationError",
173171
)

end_to_end_tests/golden-record/my_test_api_client/models/upload_array_of_files_in_object_tests_upload_post_body.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0