Skip to content

tests.unit.v1.test_base_document: test_documentsnapshot___hash__ failed #510

@flaky-bot

Description

@flaky-bot

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

Metadata

Metadata

Assignees

Labels

🚨This issue needs some love.api: firestoreIssues related to the googleapis/python-firestore API.flakybot: flakyTells the Flaky Bot not to close or comment on this issue.flakybot: issueAn issue filed by the Flaky Bot. Should not be added manually.priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions