File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,29 @@ def test_response_from_data_no_content(any_property_factory):
3131 )
3232
3333
34+ def test_response_from_data_reference (any_property_factory ):
35+ from openapi_python_client .parser .responses import Response , response_from_data
36+
37+ response , schemas = response_from_data (
38+ status_code = 200 ,
39+ data = oai .Reference .construct (),
40+ schemas = Schemas (),
41+ parent_name = "parent" ,
42+ config = MagicMock (),
43+ )
44+
45+ assert response == Response (
46+ status_code = 200 ,
47+ prop = any_property_factory (
48+ name = "response_200" ,
49+ default = None ,
50+ nullable = False ,
51+ required = True ,
52+ ),
53+ source = "None" ,
54+ )
55+
56+
3457def test_response_from_data_unsupported_content_type ():
3558 from openapi_python_client .parser .responses import response_from_data
3659
You can’t perform that action at this time.
0 commit comments