MCPcopy
hub / github.com/encode/django-rest-framework / test_unversioned

Method test_unversioned

tests/test_versioning.py:68–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66
67class TestRequestVersion:
68 def test_unversioned(self):
69 view = RequestVersionView.as_view()
70
71 request = factory.get('/endpoint/')
72 response = view(request)
73 assert response.data == {'version': None}
74
75 def test_query_param_versioning(self):
76 scheme = versioning.QueryParameterVersioning

Callers

nothing calls this directly

Calls 3

viewFunction · 0.85
as_viewMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected