Skip to content

Commit 635a703

Browse files
Switch to pytest (#238)
... as nose won't work with Python 3.9/3.10
1 parent ca4731a commit 635a703

File tree

6 files changed

+96
-119
lines changed

6 files changed

+96
-119
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ doc:
1010

1111
test:
1212
-find coverage/ -mindepth 1 -delete
13-
python $$(which nosetests) $${TESTS}
13+
pytest $${TESTS}
1414

1515
clean:
1616
find . -name '*.py[co]' -delete

pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pytest --cov=happybase --cov-report html tests/

setup.cfg

+1-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
1-
[nosetests]
2-
stop = 1
3-
verbosity = 2
4-
with-coverage = 1
5-
cover-erase = 1
6-
cover-package=happybase.connection,happybase.table,happybase.batch,happybase.pool,happybase.util,tests
7-
cover-tests = 1
8-
cover-html = 1
9-
cover-html-dir = coverage/
10-
111
[build_sphinx]
122
source-dir = doc/
133
build-dir = doc/build/
144

155
[wheel]
16-
universal = 1
6+
universal = 1

0 commit comments

Comments
 (0)