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
6bbedfd7
Commit
6bbedfd7
authored
May 19, 2013
by
Oscar Vilaplana
Browse files
Options
Browse Files
Download
Plain Diff
fixed merge conflict
parents
e80488b6
31893cff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
rest_framework/tests/fields.py
+1
-1
rest_framework/tests/views.py
+0
-2
rest_framework/views.py
+2
-2
No files found.
rest_framework/tests/fields.py
View file @
6bbedfd7
...
@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
...
@@ -846,7 +846,7 @@ class HumanizedFieldType(TestCase):
"""
"""
self
.
assertIsInstance
(
humanized
,
unicode
)
self
.
assertIsInstance
(
humanized
,
unicode
)
self
.
assert
True
(
humanized
)
self
.
assert
NotEqual
(
humanized
,
''
)
class
HumanizedField
(
TestCase
):
class
HumanizedField
(
TestCase
):
...
...
rest_framework/tests/views.py
View file @
6bbedfd7
...
@@ -11,7 +11,6 @@ from rest_framework.response import Response
...
@@ -11,7 +11,6 @@ from rest_framework.response import Response
from
rest_framework.settings
import
api_settings
from
rest_framework.settings
import
api_settings
from
rest_framework.views
import
APIView
from
rest_framework.views
import
APIView
factory
=
RequestFactory
()
factory
=
RequestFactory
()
...
@@ -102,4 +101,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
...
@@ -102,4 +101,3 @@ class FunctionBasedViewIntegrationTests(TestCase):
}
}
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_400_BAD_REQUEST
)
self
.
assertEqual
(
response
.
status_code
,
status
.
HTTP_400_BAD_REQUEST
)
self
.
assertEqual
(
sanitise_json_error
(
response
.
data
),
expected
)
self
.
assertEqual
(
sanitise_json_error
(
response
.
data
),
expected
)
rest_framework/views.py
View file @
6bbedfd7
...
@@ -68,9 +68,9 @@ class APIView(View):
...
@@ -68,9 +68,9 @@ class APIView(View):
return
content
return
content
def
_generate_action_metadata
(
self
,
request
):
def
_generate_action_metadata
(
self
,
request
):
'''
"""
Helper for generating the fields metadata for allowed and permitted methods.
Helper for generating the fields metadata for allowed and permitted methods.
'''
"""
actions
=
{}
actions
=
{}
for
method
in
self
.
allowed_methods
:
for
method
in
self
.
allowed_methods
:
# skip HEAD and OPTIONS
# skip HEAD and OPTIONS
...
...
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