Skip to content

Commit

Permalink
Switch to pytest (#238)
Browse files Browse the repository at this point in the history
... as nose won't work with Python 3.9/3.10
  • Loading branch information
paolostivanin authored Apr 9, 2020
1 parent ca4731a commit 635a703
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 119 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ doc:

test:
-find coverage/ -mindepth 1 -delete
python $$(which nosetests) $${TESTS}
pytest $${TESTS}

clean:
find . -name '*.py[co]' -delete
Expand Down
1 change: 1 addition & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pytest --cov=happybase --cov-report html tests/
12 changes: 1 addition & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
[nosetests]
stop = 1
verbosity = 2
with-coverage = 1
cover-erase = 1
cover-package=happybase.connection,happybase.table,happybase.batch,happybase.pool,happybase.util,tests
cover-tests = 1
cover-html = 1
cover-html-dir = coverage/

[build_sphinx]
source-dir = doc/
build-dir = doc/build/

[wheel]
universal = 1
universal = 1
Loading

0 comments on commit 635a703

Please sign in to comment.