Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
c36ff4e0
Commit
c36ff4e0
authored
May 31, 2013
by
Tom Christie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleaning up imports and whitespace
parent
fdf9a267
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
5 deletions
+1
-5
rest_framework/tests/models.py
+1
-1
rest_framework/tests/test_authentication.py
+0
-0
rest_framework/tests/test_routers.py
+0
-4
No files found.
rest_framework/tests/models.py
View file @
c36ff4e0
...
...
@@ -162,8 +162,8 @@ class NullableOneToOneSource(RESTFrameworkModel):
target
=
models
.
OneToOneField
(
OneToOneTarget
,
null
=
True
,
blank
=
True
,
related_name
=
'nullable_source'
)
# Serializer used to test BasicModel
class
BasicModelSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
model
=
BasicModel
rest_framework/tests/test_authentication.py
View file @
c36ff4e0
rest_framework/tests/test_routers.py
View file @
c36ff4e0
from
__future__
import
unicode_literals
from
django.test
import
TestCase
from
django.test.client
import
RequestFactory
from
rest_framework
import
status
from
rest_framework.response
import
Response
from
rest_framework
import
viewsets
from
rest_framework.decorators
import
link
,
action
from
rest_framework.routers
import
SimpleRouter
import
copy
factory
=
RequestFactory
()
...
...
@@ -51,5 +49,3 @@ class TestSimpleRouter(TestCase):
else
:
method_map
=
'get'
self
.
assertEqual
(
route
.
mapping
[
method_map
],
endpoint
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment