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
f7f63aea
Commit
f7f63aea
authored
Apr 28, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added back using nose to test a subset of tests.
parent
91a2f860
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
README.rst
+6
-0
pystache/commands/test.py
+1
-1
pystache/tests/main.py
+3
-1
No files found.
README.rst
View file @
f7f63aea
...
...
@@ -173,6 +173,11 @@ is present. Otherwise, it parses the json files. To install PyYAML-- ::
pip install pyyaml
To run a subset of the tests, you can use nose_: ::
pip install nose
nosetests --tests pystache/tests/test_context.py:GetValueTests.test_dictionary__key_present
**Running Pystache from source with Python 3.** Pystache is written in
Python 2 and must be converted with 2to3_ prior to running under Python 3.
The installation process (and tox) do this conversion automatically.
...
...
@@ -214,6 +219,7 @@ Authors
.. _Mustache: http://mustache.github.com/
.. _Mustache spec: https://github.com/mustache/spec
.. _mustache(5): http://mustache.github.com/mustache.5.html
.. _nose: http://somethingaboutorange.com/mrl/projects/nose/0.11.1/testing.html
.. _only unicode strings: http://docs.python.org/howto/unicode.html#tips-for-writing-unicode-aware-programs
.. _PyPI: http://pypi.python.org/pypi/pystache
.. _Pystache: https://github.com/defunkt/pystache
...
...
pystache/commands/test.py
View file @
f7f63aea
...
...
@@ -7,7 +7,7 @@ This module provides a command to test pystache (unit tests, doctests, etc).
import
sys
from
pystache.tests.main
import
run_tests
from
pystache.tests.main
import
main
as
run_tests
def
main
(
sys_argv
=
sys
.
argv
):
...
...
pystache/tests/main.py
View file @
f7f63aea
...
...
@@ -24,7 +24,9 @@ from pystache.tests.spectesting import get_spec_tests
FROM_SOURCE_OPTION
=
"--from-source"
def
run_tests
(
sys_argv
):
# Do not include "test" in this function's name to avoid it getting
# picked up by nosetests.
def
main
(
sys_argv
):
"""
Run all tests in the project.
...
...
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