def setUp(self): super(CreateTimingsEndpointTests, self).setUp() self.view = TimingsListCreateEndpoint.as_view() self.params = { 'time': 5014, 'distance': 10500, 'date': '2014-09-21' }
def setUp(self): super(ListTimingsEndpointTests, self).setUp() self.view = TimingsListCreateEndpoint.as_view()
def setUp(self): super(CreateTimingsEndpointTests, self).setUp() self.view = TimingsListCreateEndpoint.as_view() self.params = {'time': 5014, 'distance': 10500, 'date': '2014-09-21'}
# coding: utf-8 from django.conf.urls import patterns, include, url from timings.endpoints import ( TimingsListCreateEndpoint, TimingsRetrieveUpdateDestroyEndpoint) urlpatterns = patterns('', url(r'^timings/$', TimingsListCreateEndpoint.as_view(), name='timings-list-create'), url(r'^timings/(?P<pk>\d+)/$', TimingsRetrieveUpdateDestroyEndpoint.as_view(), name='timings-retrive-update-destroy'), )
# coding: utf-8 from django.conf.urls import patterns, include, url from timings.endpoints import (TimingsListCreateEndpoint, TimingsRetrieveUpdateDestroyEndpoint) urlpatterns = patterns( '', url(r'^timings/$', TimingsListCreateEndpoint.as_view(), name='timings-list-create'), url(r'^timings/(?P<pk>\d+)/$', TimingsRetrieveUpdateDestroyEndpoint.as_view(), name='timings-retrive-update-destroy'), )