Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Oct 23, 2023
1 parent c9dbbfe commit 56995a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/test_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_document_set_w_nested_list(client, cleanup, database):
assert snapshot.to_dict() is None

# 1. Use ``create()`` to create the document.
data1 = {"a": {"x": 1, "y":2}}
data1 = {"a": {"x": 1, "y": 2}}
write_result1 = document.create(data1)
snapshot1 = document.get()
assert snapshot1.to_dict() == data1
Expand All @@ -232,7 +232,7 @@ def test_document_set_w_nested_list(client, cleanup, database):
assert snapshot1.update_time == write_result1.update_time

# 2. Call ``set()`` again to delete sub-field
data2 = {"a": {"x":firestore.DELETE_FIELD}}
data2 = {"a": {"x": firestore.DELETE_FIELD}}
write_result2 = document.set(data2, merge=True)
snapshot2 = document.get()
assert snapshot2.to_dict() == {"a": {"y": 2}}
Expand Down

0 comments on commit 56995a4

Please sign in to comment.