-
Notifications
You must be signed in to change notification settings - Fork 86
Description
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.
commit: ffbe4c1
buildURL: Build Status, Sponge
status: failed
Test output
def test_documentsnapshot___hash__():
import datetime
from proto.datetime_helpers import DatetimeWithNanoseconds
client = mock.MagicMock()
client.__hash__.return_value = 234566789
reference = _make_base_document_reference("hi", "bye", client=client)
data = {"zoop": 83}
update_time = DatetimeWithNanoseconds(
2021, 10, 4, 17, 43, 27, nanosecond=123456789, tzinfo=datetime.timezone.utc
)
snapshot = _make_document_snapshot(
reference, data, True, None, mock.sentinel.create_time, update_time
)
assert hash(snapshot) == hash(reference) + hash(update_time)
E assert 256889779769314132 == (8621922847787626915 + 858338968836463021)
E + where 256889779769314132 = hash(<google.cloud.firestore_v1.base_document.DocumentSnapshot object at 0x7fa4ca79ebd0>)
E + and 8621922847787626915 = hash(<google.cloud.firestore_v1.base_document.BaseDocumentReference object at 0x7fa4ca7896d0>)
E + and 858338968836463021 = hash(DatetimeWithNanoseconds(2021, 10, 4, 17, 43, 27, 123456, tzinfo=datetime.timezone.utc))
tests/unit/v1/test_base_document.py:286: AssertionError