pythonPackages.vcrpy: enable tests
This commit is contained in:
parent
c797550957
commit
237d61939d
@ -1,6 +1,17 @@
|
|||||||
{ lib, pkgs, pythonPackages }:
|
{ buildPythonPackage
|
||||||
|
, lib
|
||||||
|
, pkgs
|
||||||
|
, pyyaml
|
||||||
|
, mock
|
||||||
|
, contextlib2
|
||||||
|
, wrapt
|
||||||
|
, pytest_27
|
||||||
|
, httpbin
|
||||||
|
, pytest-httpbin
|
||||||
|
, yarl
|
||||||
|
}:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "1.10.5";
|
version = "1.10.5";
|
||||||
name = "vcrpy-${version}";
|
name = "vcrpy-${version}";
|
||||||
|
|
||||||
@ -9,7 +20,7 @@ pythonPackages.buildPythonPackage rec {
|
|||||||
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
|
sha256 = "12kncg6jyvj15mi8ca74514f2x1ih753nhyz769nwvh39r468167";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = with pythonPackages; [
|
buildInputs = [
|
||||||
pyyaml
|
pyyaml
|
||||||
mock
|
mock
|
||||||
contextlib2
|
contextlib2
|
||||||
@ -17,8 +28,13 @@ pythonPackages.buildPythonPackage rec {
|
|||||||
pytest_27
|
pytest_27
|
||||||
httpbin
|
httpbin
|
||||||
pytest-httpbin
|
pytest-httpbin
|
||||||
|
yarl
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test --ignore=tests/integration -k "TestVCRConnection.testing_connect"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
|
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
|
||||||
homepage = https://github.com/kevin1024/vcrpy;
|
homepage = https://github.com/kevin1024/vcrpy;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user