You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Switch to py.test and make it actually work.
Separate out requirements into production and testing.
Fix pep257 issues with docstrings and some pep8 issues.
Add a setup.py to be able to import the app from tests.
Copy file name to clipboardExpand all lines: README.md
+10-3
Original file line number
Diff line number
Diff line change
@@ -24,8 +24,15 @@ How To Use This
24
24
Testing
25
25
-------
26
26
27
-
1. Install the dependencies with `pip install -r requirements.txt`
28
-
2. Run the command `nosetests -v`
27
+
1. Install the dependencies with:
28
+
29
+
```bash
30
+
pip install -r requirements.txt
31
+
pip install -r requirements-test.txt
32
+
python setup.py develop
33
+
```
34
+
35
+
2. Run the command `py.test test/`
29
36
3. If you delete the fixtures, or decide to add some of your own, you’ll have to re-generate them, and the way this is done is by running the app, getting an auth_token from the main page of the app. Paste that token in place of the `test_auth_token` at the top of the `test_endpoints.py` file, then run the tests.
30
37
31
38
@@ -35,7 +42,7 @@ Development
35
42
If you want to work on this application we’d love your pull requests and tickets on GitHub!
36
43
37
44
1. If you open up a ticket, please make sure it describes the problem or feature request fully.
38
-
2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with `nosetests -v`.
45
+
2. If you send us a pull request, make sure you add a test for what you added, and make sure the full test suite runs with `py.test`.
0 commit comments