Skip to content

Commit

Permalink
use pytest in readme and make
Browse files Browse the repository at this point in the history
fixes #529
[ci skip]
  • Loading branch information
davidism committed Sep 26, 2017
1 parent c48d816 commit 80a7cce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -3,7 +3,7 @@
all: test

test:
@python test_sqlalchemy.py
pytest

clean: clean-pyc

Expand Down
16 changes: 5 additions & 11 deletions README
Expand Up @@ -9,8 +9,8 @@

~ What's the latest version?

2.1 is the most recent stable version.
2.3 is the most recent stable version.

~ What do I need?

SQLAlchemy, and Flask 0.10 or later. `pip` or `easy_install` will
Expand All @@ -26,20 +26,14 @@

~ Where are the tests?

Good that you're asking. To run the tests use the
`test_sqlalchemy.py` file:

$ python test_sqlalchemy.py
Good that you're asking. To run the tests use `pytest`:

If you just want one particular testcase to run you can provide
it on the command line:
$ pytest

$ python test_sqlalchemy.py PaginationTestCase

In case you have `tox` installed, you can also run that to have
virtualenvs created automatically and tests run inside of them
at your convenience. Running just `tox` is enough:

$ tox

~ Where can I get help?
Expand Down

0 comments on commit 80a7cce

Please sign in to comment.