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
94199a48
Commit
94199a48
authored
Mar 11, 2011
by
sebpiq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modified tests.__init__ so it also test module docstrings
parent
b117f7bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
djangorestframework/tests/__init__.py
+6
-2
No files found.
djangorestframework/tests/__init__.py
View file @
94199a48
...
@@ -5,5 +5,10 @@ modules = [filename.rsplit('.', 1)[0]
...
@@ -5,5 +5,10 @@ modules = [filename.rsplit('.', 1)[0]
for
filename
in
os
.
listdir
(
os
.
path
.
dirname
(
__file__
))
for
filename
in
os
.
listdir
(
os
.
path
.
dirname
(
__file__
))
if
filename
.
endswith
(
'.py'
)
and
not
filename
.
startswith
(
'_'
)]
if
filename
.
endswith
(
'.py'
)
and
not
filename
.
startswith
(
'_'
)]
__test__
=
dict
()
for
module
in
modules
:
for
module
in
modules
:
exec
(
"from djangorestframework.tests.
%
s import *"
%
module
)
exec
(
"from djangorestframework.tests.
%
s import __doc__ as module_doc"
%
module
)
\ No newline at end of file
exec
(
"from djangorestframework.tests.
%
s import *"
%
module
)
__test__
[
'
%
s'
%
module
]
=
module_doc
or
""
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