Skip to content

Commit 9517cf5

Browse files
author
Nat Williams
committed
add test_requirements.txt and more test running instructions
1 parent 30c1cec commit 9517cf5

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

README.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,9 @@ Contribute
5858
4. Add you to ``AUTHORS``
5959
5. Pull request it
6060

61-
**Note**: I use `nose <http://readthedocs.org/docs/nose/en/latest/>`_ test environment,
62-
with `mock <http://www.voidspace.org.uk/python/mock/>`_ ``pip install nose mock``
61+
Tests
62+
-----
63+
64+
Test and docs requirements are listed in ``test_requirements.txt``.
65+
Run ``pip install -r test_requirements.txt`` to install them and ``nosetests``
66+
to run tests

docs/installation.rst

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,21 @@ Dependencies
1515
Required
1616
.........
1717

18-
This library only depends on `request library`_ module.
18+
This library depends only on the `requests`_ module.
1919

20-
If you install ``pygithub3`` with ``pip`` all is done. The best option
20+
If you install ``pygithub3`` with ``pip`` all is done. This is the best option.
2121

2222
Optional
2323
.........
2424

25-
If you want to run the test suite, you must install `nose`_ and `mock`_
25+
The test suite uses `nose`_, `mock`_, and `unittest2`_. Compiling the
26+
documentation requires `sphinx`_.
2627

27-
.. _request library: http://docs.python-requests.org/en/v0.10.6/index.html
28+
Install all of these by running ``pip install -r test_requirements.txt``. Then
29+
just run ``nosetests`` to run the tests.
30+
31+
.. _requests: http://docs.python-requests.org/en/v0.10.6/index.html
2832
.. _nose: http://readthedocs.org/docs/nose/en/latest
2933
.. _mock: http://pypi.python.org/pypi/mock
34+
.. _unittest2: http://pypi.python.org/pypi/unittest2
35+
.. _sphinx: http://sphinx.pocoo.org/

test_requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
nose
2+
unittest2
3+
mock
4+
sphinx

0 commit comments

Comments
 (0)