python3Packages.azure-core: fix tests

This commit is contained in:
Jonathan Ringer 2021-10-10 23:06:20 -07:00
parent 63c1c92476
commit b53d3aa90a
No known key found for this signature in database
GPG key ID: 5C841D3CFDFEC4E0

View file

@ -44,6 +44,11 @@ buildPythonPackage rec {
typing-extensions
];
# test server needs to be available
preCheck = ''
export PYTHONPATH=tests/testserver_tests/coretestserver:$PYTHONPATH
'';
pytestFlagsArray = [ "tests/" ];
# disable tests which touch network
disabledTests = [ "aiohttp" "multipart_send" "response" "request" "timeout" ];