We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abd9c51 commit 61c27e0Copy full SHA for 61c27e0
example/tests/test_openapi.py
@@ -102,15 +102,6 @@ def test_delete_request(snapshot):
102
{'delete': 'delete'}
103
)
104
inspector = AutoSchema()
105
- # DRF >=3.12 changes the capitalization of these method mappings which breaks the snapshot,
106
- # so just override them to be consistent with >=3.12
107
- inspector.method_mapping = {
108
- 'get': 'retrieve',
109
- 'post': 'create',
110
- 'put': 'update',
111
- 'patch': 'partialUpdate',
112
- 'delete': 'destroy',
113
- }
114
inspector.view = view
115
116
operation = inspector.get_operation(path, method)
0 commit comments