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

Method setUp

tests/test_routers.py:228–230  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

226 ]
227
228 def setUp(self):
229 RouterTestModel.objects.create(uuid='123', text='foo bar')
230 RouterTestModel.objects.create(uuid='a b', text='baz qux')
231
232 def test_custom_lookup_field_route(self):
233 detail_route = notes_router.urls[-1]

Callers

nothing calls this directly

Calls 1

createMethod · 0.45

Tested by

no test coverage detected