|
| 1 | +""" Contains methods for accessing the API Endpoints """ |
| 2 | + |
| 3 | +import types |
| 4 | + |
| 5 | +from my_test_api_client.api.tests import ( |
| 6 | + defaults_tests_defaults_post, |
| 7 | + get_basic_list_of_booleans, |
| 8 | + get_basic_list_of_floats, |
| 9 | + get_basic_list_of_integers, |
| 10 | + get_basic_list_of_strings, |
| 11 | + get_user_list, |
| 12 | + int_enum_tests_int_enum_post, |
| 13 | + json_body_tests_json_body_post, |
| 14 | + no_response_tests_no_response_get, |
| 15 | + octet_stream_tests_octet_stream_get, |
| 16 | + optional_value_tests_optional_query_param, |
| 17 | + post_form_data, |
| 18 | + test_inline_objects, |
| 19 | + token_with_cookie_auth_token_with_cookie_get, |
| 20 | + unsupported_content_tests_unsupported_content_get, |
| 21 | + upload_file_tests_upload_post, |
| 22 | +) |
| 23 | + |
| 24 | + |
| 25 | +class TestsEndpoints: |
| 26 | + @classmethod |
| 27 | + def get_user_list(cls) -> types.ModuleType: |
| 28 | + """ |
| 29 | + Get a list of things |
| 30 | + """ |
| 31 | + return get_user_list |
| 32 | + |
| 33 | + @classmethod |
| 34 | + def get_basic_list_of_strings(cls) -> types.ModuleType: |
| 35 | + """ |
| 36 | + Get a list of strings |
| 37 | + """ |
| 38 | + return get_basic_list_of_strings |
| 39 | + |
| 40 | + @classmethod |
| 41 | + def get_basic_list_of_integers(cls) -> types.ModuleType: |
| 42 | + """ |
| 43 | + Get a list of integers |
| 44 | + """ |
| 45 | + return get_basic_list_of_integers |
| 46 | + |
| 47 | + @classmethod |
| 48 | + def get_basic_list_of_floats(cls) -> types.ModuleType: |
| 49 | + """ |
| 50 | + Get a list of floats |
| 51 | + """ |
| 52 | + return get_basic_list_of_floats |
| 53 | + |
| 54 | + @classmethod |
| 55 | + def get_basic_list_of_booleans(cls) -> types.ModuleType: |
| 56 | + """ |
| 57 | + Get a list of booleans |
| 58 | + """ |
| 59 | + return get_basic_list_of_booleans |
| 60 | + |
| 61 | + @classmethod |
| 62 | + def post_form_data(cls) -> types.ModuleType: |
| 63 | + """ |
| 64 | + Post form data |
| 65 | + """ |
| 66 | + return post_form_data |
| 67 | + |
| 68 | + @classmethod |
| 69 | + def upload_file_tests_upload_post(cls) -> types.ModuleType: |
| 70 | + """ |
| 71 | + Upload a file |
| 72 | + """ |
| 73 | + return upload_file_tests_upload_post |
| 74 | + |
| 75 | + @classmethod |
| 76 | + def json_body_tests_json_body_post(cls) -> types.ModuleType: |
| 77 | + """ |
| 78 | + Try sending a JSON body |
| 79 | + """ |
| 80 | + return json_body_tests_json_body_post |
| 81 | + |
| 82 | + @classmethod |
| 83 | + def defaults_tests_defaults_post(cls) -> types.ModuleType: |
| 84 | + """ |
| 85 | + Defaults |
| 86 | + """ |
| 87 | + return defaults_tests_defaults_post |
| 88 | + |
| 89 | + @classmethod |
| 90 | + def octet_stream_tests_octet_stream_get(cls) -> types.ModuleType: |
| 91 | + """ |
| 92 | + Octet Stream |
| 93 | + """ |
| 94 | + return octet_stream_tests_octet_stream_get |
| 95 | + |
| 96 | + @classmethod |
| 97 | + def no_response_tests_no_response_get(cls) -> types.ModuleType: |
| 98 | + """ |
| 99 | + No Response |
| 100 | + """ |
| 101 | + return no_response_tests_no_response_get |
| 102 | + |
| 103 | + @classmethod |
| 104 | + def unsupported_content_tests_unsupported_content_get(cls) -> types.ModuleType: |
| 105 | + """ |
| 106 | + Unsupported Content |
| 107 | + """ |
| 108 | + return unsupported_content_tests_unsupported_content_get |
| 109 | + |
| 110 | + @classmethod |
| 111 | + def int_enum_tests_int_enum_post(cls) -> types.ModuleType: |
| 112 | + """ |
| 113 | + Int Enum |
| 114 | + """ |
| 115 | + return int_enum_tests_int_enum_post |
| 116 | + |
| 117 | + @classmethod |
| 118 | + def test_inline_objects(cls) -> types.ModuleType: |
| 119 | + """ |
| 120 | + Test Inline Objects |
| 121 | + """ |
| 122 | + return test_inline_objects |
| 123 | + |
| 124 | + @classmethod |
| 125 | + def optional_value_tests_optional_query_param(cls) -> types.ModuleType: |
| 126 | + """ |
| 127 | + Test optional query parameters |
| 128 | + """ |
| 129 | + return optional_value_tests_optional_query_param |
| 130 | + |
| 131 | + @classmethod |
| 132 | + def token_with_cookie_auth_token_with_cookie_get(cls) -> types.ModuleType: |
| 133 | + """ |
| 134 | + Test optional cookie parameters |
| 135 | + """ |
| 136 | + return token_with_cookie_auth_token_with_cookie_get |
0 commit comments