watson: use pytest for testing

This commit is contained in:
Nathan Yong 2019-07-01 13:20:13 +10:00
parent 50855c5141
commit 4976d7ec3f

View File

@ -12,10 +12,8 @@ buildPythonApplication rec {
sha256 = "249313996751f32f38817d424cbf8d74956461df1439f0ee3a962fcc3c77225d";
};
# uses tox, test invocation fails
doCheck = true;
checkPhase = ''
py.test -vs tests
pytest -vs tests
'';
checkInputs = [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];