Open odeke-em opened 2 months ago
Also whenever I run the tests locally, I consistently get these unrelated but failing tests even on a fresh clone
=========================== short test summary info ============================
FAILED tests/unit/test_client.py::TestClient::test_constructor_credentials_wo_create_scoped - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_custom_client_info - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_custom_client_options_dict - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_custom_client_options_obj - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_custom_query_options_client_config - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_custom_query_options_env_config - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_default_scopes - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_implicit_credentials - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_route_to_leader_disbled - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_constructor_w_directed_read_options - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_copy - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
FAILED tests/unit/test_client.py::TestClient::test_credentials_property - AssertionError: <google.auth.credentials.AnonymousCredentials object at 0x1...
It is quite cumbersome and slow developing for this library because even just the unit tests require a bulky setup of fetching dependencies afresh every single time and even worse makes it impossible to properly test. Unit tests should be hermetic in most cases but the experience here is very noisy producing lots of output then requires network calls too.
Environment details
Darwin Emmanuels-MacBook-Pro-2.local 22.6.0 Darwin Kernel Version 22.6.0: Mon Feb 19 19:48:53 PST 2024; root:xnu-8796.141.3.704.6~1/RELEASE_X86_64 x86_64
python --version
Python 3.10.11
pip --version
pip 24.2 from /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip (python 3.10)
google-cloud-spanner
version:pip show google-cloud-spanner
Steps to reproduce
nox -s unit-3.7
Stack trace
/cc @harshachinta @surbhigarg92