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
e5e019b0
Commit
e5e019b0
authored
Jun 28, 2011
by
Tom Christie
Browse files
Options
Browse Files
Download
Plain Diff
Pull in David's initial oauth tests
parents
d714901a
fe7e3ba3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
229 additions
and
12 deletions
+229
-12
AUTHORS
+4
-2
djangorestframework/runtests/settings.py
+11
-2
djangorestframework/tests/oauthentication.py
+212
-0
djangorestframework/tests/reverse.py
+0
-4
examples/requirements.txt
+2
-4
No files found.
AUTHORS
View file @
e5e019b0
Tom Christie <tomchristie> - tom@tomchristie.com, @thisneonsoul
Tom Christie <tomchristie> - tom@tomchristie.com, @thisneonsoul - Author.
Paul Bagwell <pbgwl> - Suggestions & bugfixes.
Marko Tibold <markotibold> - Contributions & Providing the Jenkins CI Server.
Sébastien Piquemal <sebpiq> - Contributions.
Carmen Wick <cwick> - Bugfixes.
Alex Ehlke <aehlke> - Design Contributions.
Alen Mujezinovic <flashingpumpkin> - Contributions.
Carles Barrobés <txels> - HEAD support.
Michael Fötsch <mfoetsch> - File format support.
David Larlet <david> - OAuth support.
THANKS TO:
...
...
djangorestframework/runtests/settings.py
View file @
e5e019b0
...
...
@@ -84,7 +84,7 @@ TEMPLATE_DIRS = (
# Don't forget to use absolute paths, not relative paths.
)
INSTALLED_APPS
=
(
INSTALLED_APPS
=
[
'django.contrib.auth'
,
'django.contrib.contenttypes'
,
'django.contrib.sessions'
,
...
...
@@ -95,8 +95,17 @@ INSTALLED_APPS = (
# Uncomment the next line to enable admin documentation:
# 'django.contrib.admindocs',
'djangorestframework'
,
)
]
# OAuth support is optional, so we only test oauth if it's installed.
try
:
import
oauth_provider
except
:
pass
else
:
INSTALLED_APPS
.
append
(
'oauth_provider'
)
# If we're running on the Jenkins server we want to archive the coverage reports as XML.
import
os
if
os
.
environ
.
get
(
'HUDSON_URL'
,
None
):
TEST_RUNNER
=
'xmlrunner.extra.djangotestrunner.XMLTestRunner'
...
...
djangorestframework/tests/oauthentication.py
0 → 100644
View file @
e5e019b0
This diff is collapsed.
Click to expand it.
djangorestframework/tests/reverse.py
View file @
e5e019b0
...
...
@@ -24,9 +24,5 @@ class ReverseTests(TestCase):
urls
=
'djangorestframework.tests.reverse'
def
test_reversed_urls_are_fully_qualified
(
self
):
try
:
response
=
self
.
client
.
get
(
'/'
)
except
:
import
traceback
traceback
.
print_exc
()
self
.
assertEqual
(
json
.
loads
(
response
.
content
),
'http://testserver/another'
)
examples/requirements.txt
View file @
e5e019b0
# For the examples we need Django, pygments and httplib2...
# Pygments for the code highlighting example,
# markdown for the docstring -> auto-documentation
Django==1.2.4
wsgiref==0.1.2
Pygments==1.4
httplib2==0.6.0
Markdown==2.0.3
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