Skip to content

Commit

Permalink
python3Packages.google_cloud_vision: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Ringer committed Nov 11, 2019
1 parent 1794b43 commit 0dfbff1
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
, fetchPypi
, enum34
, google_api_core
, pytest
, mock
}:

Expand All @@ -16,11 +15,13 @@ buildPythonPackage rec {
sha256 = "f33aea6721d453901ded268dee61a01ab77d4cd215a76edc3cc61b6028299d3e";
};

checkInputs = [ pytest mock ];
checkInputs = [ mock ];
propagatedBuildInputs = [ enum34 google_api_core ];

# pytest seems to pick up some file which overrides PYTHONPATH
checkPhase = ''
pytest tests/unit
cd tests/unit
python -m unittest discover
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 0dfbff1

Please sign in to comment.