Skip to content

Commit f86cb7d

Browse files
committed
NRL-1285 update crud smoke test
1 parent 69ae091 commit f86cb7d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/smoke/scenarios/producer_crud.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ def test_producer_crud(
1818

1919
try:
2020
# Create
21-
create_response = producer_client.create(test_docref.model_dump())
21+
create_response = producer_client.create(
22+
test_docref.model_dump(exclude_none=True)
23+
)
2224
assert create_response.ok
2325
created_id = create_response.headers["Location"].split("/")[-1]
2426

@@ -29,7 +31,7 @@ def test_producer_crud(
2931

3032
# Update
3133
updated_docref = {
32-
**test_docref.model_dump(),
34+
**test_docref.model_dump(exclude_none=True),
3335
"id": created_id,
3436
}
3537
updated_docref["content"][0]["attachment"][

0 commit comments

Comments
 (0)