python3Packages.langchain: disable integration_tests with pytestFlagsArray

some tests require files in integration_tests/examples
This commit is contained in:
natsukium 2023-05-12 12:29:19 +09:00
parent 6bf9ace2ec
commit 0ca6725448
No known key found for this signature in database
GPG Key ID: 9EA45A31DB994C53

View File

@ -208,10 +208,10 @@ buildPythonPackage rec {
responses
];
preCheck = ''
pytestFlagsArray = [
# integration_tests have many network, db access and require `OPENAI_API_KEY`, etc.
rm -r tests/integration_tests
'';
"--ignore=tests/integration_tests"
];
disabledTests = [
# these tests have db access