mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-06 09:12:35 +03:00
python3Packages.google-cloud-*: migrate to disabledTestPaths
This commit is contained in:
parent
3838df3ec8
commit
926450c6e3
@ -21,7 +21,11 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-UjYzSWtP4cp0p7Is2qIGWBgEhjgTv0YeL0N9D7etIbY=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-api-core libcst proto-plus ];
|
||||
propagatedBuildInputs = [
|
||||
google-api-core
|
||||
libcst
|
||||
proto-plus
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
google-cloud-storage
|
||||
@ -35,10 +39,13 @@ buildPythonPackage rec {
|
||||
preCheck = ''
|
||||
# do not shadow imports
|
||||
rm -r google
|
||||
# requires credentials
|
||||
rm tests/system/gapic/v1beta1/test_system_tables_client_v1.py
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# requires credentials
|
||||
"tests/system/gapic/v1beta1/test_system_tables_client_v1.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# requires credentials
|
||||
"test_prediction_client_client_info"
|
||||
|
@ -20,17 +20,30 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-56UQdZudVf9jyYPjxCy/XDX5tzEPTWEevjaX2mV2vLQ=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
|
||||
propagatedBuildInputs = [
|
||||
google-api-core
|
||||
google-cloud-core
|
||||
libcst
|
||||
proto-plus
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# directory shadows imports
|
||||
rm -r google
|
||||
# requires credentials
|
||||
rm tests/system/test_system.py
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Requires credentials
|
||||
"tests/system/test_system.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"google.cloud.datastore"
|
||||
"google.cloud.datastore_admin_v1"
|
||||
|
@ -24,9 +24,18 @@ buildPythonPackage rec {
|
||||
--replace 'google-cloud-logging>=1.14.0, <2.4' 'google-cloud-logging>=1.14.0'
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ google-cloud-logging libcst proto-plus ];
|
||||
propagatedBuildInputs = [
|
||||
google-cloud-logging
|
||||
libcst
|
||||
proto-plus
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# require credentials
|
||||
@ -34,8 +43,8 @@ buildPythonPackage rec {
|
||||
"test_report_exception"
|
||||
];
|
||||
|
||||
# prevent google directory from shadowing google imports
|
||||
preCheck = ''
|
||||
# prevent google directory from shadowing google imports
|
||||
rm -r google
|
||||
'';
|
||||
|
||||
|
@ -39,10 +39,10 @@ buildPythonPackage rec {
|
||||
rm -r google
|
||||
'';
|
||||
|
||||
pytestFlagsArray = [
|
||||
# tests are broken
|
||||
"--ignore=tests/system/test_system.py"
|
||||
"--ignore=tests/system/test_system_async.py"
|
||||
disabledTestPaths = [
|
||||
# Tests are broken
|
||||
"tests/system/test_system.py"
|
||||
"tests/system/test_system_async.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
|
@ -20,17 +20,30 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-hwZVe3FTLHauxIQJ3KwYnKrEfPLey4hQrnVpS/cDJrI=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ grpc_google_iam_v1 google-api-core libcst proto-plus ];
|
||||
propagatedBuildInputs = [
|
||||
grpc_google_iam_v1
|
||||
google-api-core
|
||||
libcst
|
||||
proto-plus
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# prevent google directory from shadowing google imports
|
||||
rm -r google
|
||||
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
|
||||
rm -r tests/unit/pubsub_v1
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Tests in pubsub_v1 attempt to contact pubsub.googleapis.com
|
||||
"tests/unit/pubsub_v1"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "google.cloud.pubsub" ];
|
||||
|
||||
meta = with lib; {
|
||||
|
@ -21,18 +21,35 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-8o7pr9msuMfIN7UMX+/gppmD3MWXt2hBqb7vcLUE22M=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-cloud-core grpc_google_iam_v1 libcst proto-plus sqlparse ];
|
||||
propagatedBuildInputs = [
|
||||
google-cloud-core
|
||||
grpc_google_iam_v1
|
||||
libcst
|
||||
proto-plus
|
||||
sqlparse
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# prevent google directory from shadowing google imports
|
||||
rm -r google
|
||||
# disable tests which require credentials
|
||||
rm tests/system/test_{system,system_dbapi}.py
|
||||
rm tests/unit/spanner_dbapi/test_{connect,connection,cursor}.py
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
# Requires credentials
|
||||
"tests/system/test_system.py"
|
||||
"tests/system/test_system_dbapi.py"
|
||||
"tests/unit/spanner_dbapi/test_connect.py"
|
||||
"tests/unit/spanner_dbapi/test_connection.py"
|
||||
"tests/unit/spanner_dbapi/test_cursor.py"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"google.cloud.spanner_admin_database_v1"
|
||||
"google.cloud.spanner_admin_instance_v1"
|
||||
|
@ -21,9 +21,19 @@ buildPythonPackage rec {
|
||||
sha256 = "sha256-jNlX9LKajHqYPgpCfCcSUzxBu3AHt2qMyI1sZQdcZ5o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ google-api-core google-cloud-core libcst proto-plus ];
|
||||
propagatedBuildInputs = [
|
||||
google-api-core
|
||||
google-cloud-core
|
||||
libcst
|
||||
proto-plus
|
||||
];
|
||||
|
||||
checkInputs = [ google-cloud-testutils mock pytestCheckHook pytest-asyncio ];
|
||||
checkInputs = [
|
||||
google-cloud-testutils
|
||||
mock
|
||||
pytestCheckHook
|
||||
pytest-asyncio
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# prevent shadowing imports
|
||||
|
Loading…
Reference in New Issue
Block a user