Skip to content

Commit 69ae091

Browse files
committed
NRL-1285 fix smoke tests
1 parent a2f999e commit 69ae091

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/smoke/scenarios/1dsync_upsert_delete.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

tests/smoke/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}")

0 commit comments

Comments
 (0)