Пример #1
0
    def _callFUT(self, doc1, doc2):
        from google.cloud.firestore_v1.watch import document_watch_comparator

        return document_watch_comparator(doc1, doc2)
Пример #2
0
def test_document_watch_comparator_wdiff_doc():
    from google.cloud.firestore_v1.watch import document_watch_comparator

    with pytest.raises(AssertionError):
        document_watch_comparator(1, 2)
    def _callFUT(self, doc1, doc2):
        from google.cloud.firestore_v1.watch import document_watch_comparator

        return document_watch_comparator(doc1, doc2)
Пример #4
0
def test_document_watch_comparator_wsame_doc():
    from google.cloud.firestore_v1.watch import document_watch_comparator

    result = document_watch_comparator(1, 1)
    assert result == 0