Browse Source

use pytest to run tests

0.9
Rossen Georgiev 7 years ago
parent
commit
0fdcb67a75
  1. 2
      Makefile
  2. 2
      requirements.txt
  3. 4
      tox.ini

2
Makefile

@ -29,7 +29,7 @@ init:
test:
coverage erase
PYTHONHASHSEED=0 nosetests --nologcapture --verbosity 1 --with-coverage --cover-package=steam tests
PYTHONHASHSEED=0 pytest --cov=steam tests
webauth_gen:
rm -f vcr/webauth*

2
requirements.txt

@ -7,6 +7,8 @@ protobuf>=3.0.0
gevent-eventemitter>=2.0
enum34==1.1.2; python_version < '3.4'
coverage==4.0.3
pytest==3.2.1
pytest-cov==2.5.1
mock==1.3.0
nose==1.3.7
PyYAML==3.11

4
tox.ini

@ -1,9 +1,9 @@
[tox]
envlist = py27, py34
envlist = py27, py36
[testenv]
setenv =
PYTHONHASHSEED = 0
deps = -rrequirements.txt
commands =
nosetests --verbosity 1 --with-coverage --cover-package=steam
pytest --cov=steam tests

Loading…
Cancel
Save