Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
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
OpenEdx
pystache_custom
Commits
c491c2fb
Commit
c491c2fb
authored
Apr 07, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests can now be run with nosetests or Distribute's test.
parent
f267ff77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
+11
-1
pystache/tests/test_doctests.py
+11
-1
No files found.
pystache/tests/test_doctests.py
View file @
c491c2fb
...
...
@@ -24,7 +24,16 @@ from pystache.tests.common import PROJECT_DIR, SOURCE_DIR
text_file_paths
=
[
'README.rst'
]
def
load_tests
(
loader
,
tests
,
ignore
):
# Allowing load_tests() to be called is a hack to allow unit tests
# to be run with nose's nosetests without error. Otherwise, nose
# interprets the following function as a test case, raising the
# following error:
#
# TypeError: load_tests() takes exactly 3 arguments (0 given)
#
def
load_tests
(
loader
=
None
,
tests
=
None
,
ignore
=
None
):
if
loader
is
None
:
return
# Since module_relative is False in our calls to DocFileSuite below,
# paths should be OS-specific. Moreover, we choose absolute paths
# so that the current working directory does not come into play.
...
...
@@ -42,6 +51,7 @@ def load_tests(loader, tests, ignore):
return
tests
def
get_module_doctests
():
modules
=
[]
...
...
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