File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,9 @@ def test_1dsync_upsert_delete(
3939 test_docref .id = (
4040 f"{ test_ods_code } -smoketest_1dsync_upsert_delete_pointer_{ attempts } "
4141 )
42- upsert_response = producer_client_1dsync .upsert (test_docref .model_dump ())
42+ upsert_response = producer_client_1dsync .upsert (
43+ test_docref .model_dump (exclude_none = True )
44+ )
4345 assert upsert_response .ok
4446 assert upsert_response .headers ["Location" ].split ("/" )[- 1 ] == test_docref .id
4547 finally :
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ def upsert_test_pointer(
141141) -> DocumentReference :
142142 docref .id = id
143143
144- create_response = producer_client .upsert (docref .model_dump ())
144+ create_response = producer_client .upsert (docref .model_dump (exclude_none = True ))
145145
146146 if not create_response .ok :
147147 raise ValueError (f"Failed to create test pointer: { create_response .text } " )
You can’t perform that action at this time.
0 commit comments