Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.9.0 breaking firestore unit tests #115

Closed
busunkim96 opened this issue Sep 3, 2020 · 0 comments · Fixed by #116 or #118
Closed

1.9.0 breaking firestore unit tests #115

busunkim96 opened this issue Sep 3, 2020 · 0 comments · Fixed by #116 or #118
Assignees
Labels
🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@busunkim96
Copy link
Contributor

https://github.com/googleapis/python-firestore/blob/master/google/cloud/firestore_v1/types/document.py

busunkim@busunkim:~/github/python-firestore$ nox -s unit-3.8
nox > Running session unit-3.8
nox > Creating virtual environment (virtualenv) using python3.8 in .nox/unit-3-8
nox > pip install pytest-asyncio aiounittest
nox > pip install mock pytest pytest-cov
nox > pip install -e .
nox > pip install proto-plus==1.9.0
nox > py.test --quiet --cov=google.cloud.firestore --cov=google.cloud --cov=tests.unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit
Coverage.py warning: Module google.cloud.firestore was never imported. (module-not-imported)
Coverage.py warning: Module google.cloud was previously imported, but not measured (module-not-measured)

================================================================================= ERRORS ==================================================================================
___________________________________________________ ERROR collecting tests/unit/gapic/firestore_v1/test_firestore_v1.py ___________________________________________________
tests/unit/gapic/firestore_v1/test_firestore_v1.py:35: in <module>
    from google.cloud.firestore_v1.services.firestore import FirestoreAsyncClient
google/cloud/firestore_v1/__init__.py:25: in <module>
    from google.cloud.firestore_v1 import types
google/cloud/firestore_v1/types/__init__.py:23: in <module>
    from .document import (
google/cloud/firestore_v1/types/document.py:95: in <module>
    class Value(proto.Message):
.nox/unit-3-8/lib/python3.8/site-packages/proto/message.py:139: in __new__
    field.descriptor.oneof_index = oneofs[field.oneof]
.nox/unit-3-8/lib/python3.8/site-packages/proto/fields.py:96: in descriptor
    type_name = self.enum._meta.full_name
.nox/unit-3-8/lib/python3.8/site-packages/google/protobuf/internal/enum_type_wrapper.py:114: in __getattr__
    raise AttributeError('Enum {} has no value defined for name {!r}'.format(
E   AttributeError: Enum NullValue has no value defined for name '_meta'
______________________________________________________________ ERROR collecting tests/unit/v1/test_order.py _______________________________________________________________
tests/unit/v1/test_order.py:19: in <module>
    from google.cloud.firestore_v1._helpers import encode_value, GeoPoint
google/cloud/firestore_v1/__init__.py:25: in <module>
    from google.cloud.firestore_v1 import types
google/cloud/firestore_v1/types/__init__.py:23: in <module>
    from .document import (
google/cloud/firestore_v1/types/document.py:95: in <module>
    class Value(proto.Message):
.nox/unit-3-8/lib/python3.8/site-packages/proto/message.py:139: in __new__
    field.descriptor.oneof_index = oneofs[field.oneof]
.nox/unit-3-8/lib/python3.8/site-packages/proto/fields.py:96: in descriptor
    type_name = self.enum._meta.full_name
.nox/unit-3-8/lib/python3.8/site-packages/google/protobuf/internal/enum_type_wrapper.py:114: in __getattr__
    raise AttributeError('Enum {} has no value defined for name {!r}'.format(
E   AttributeError: Enum NullValue has no value defined for name '_meta'
______________________________________________________________ ERROR collecting tests/unit/v1/test_watch.py _______________________________________________________________
tests/unit/v1/test_watch.py:18: in <module>
    from google.cloud.firestore_v1.types import firestore
google/cloud/firestore_v1/__init__.py:25: in <module>
    from google.cloud.firestore_v1 import types
google/cloud/firestore_v1/types/__init__.py:23: in <module>
    from .document import (
google/cloud/firestore_v1/types/document.py:95: in <module>
    class Value(proto.Message):
.nox/unit-3-8/lib/python3.8/site-packages/proto/message.py:139: in __new__
    field.descriptor.oneof_index = oneofs[field.oneof]
.nox/unit-3-8/lib/python3.8/site-packages/proto/fields.py:96: in descriptor
    type_name = self.enum._meta.full_name
.nox/unit-3-8/lib/python3.8/site-packages/google/protobuf/internal/enum_type_wrapper.py:114: in __getattr__
    raise AttributeError('Enum {} has no value defined for name {!r}'.format(
E   AttributeError: Enum NullValue has no value defined for name '_meta'


========================================================================= short test summary info =========================================================================
ERROR tests/unit/gapic/firestore_v1/test_firestore_v1.py - AttributeError: Enum NullValue has no value defined for name '_meta'
ERROR tests/unit/v1/test_order.py - AttributeError: Enum NullValue has no value defined for name '_meta'
ERROR tests/unit/v1/test_watch.py - AttributeError: Enum NullValue has no value defined for name '_meta'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
3 errors in 4.04s
nox > Command py.test --quiet --cov=google.cloud.firestore --cov=google.cloud --cov=tests.unit --cov-append --cov-config=.coveragerc --cov-report= --cov-fail-under=0 tests/unit failed with exit code 2
nox > Session unit-3.8 failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
3 participants