Skip to content

Commit

Permalink
✅ Update and simplify test to highlight how data is not changed unnec…
Browse files Browse the repository at this point in the history
…essarily
  • Loading branch information
tiangolo committed Nov 26, 2023
1 parent 5c40f8a commit 7d9bf19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_insert_assert.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,16 +222,16 @@ def test_dict(insert_assert):
"tags": ["validation", "json"],
"name": "Pydantic",
},
{"name": "FastAPI", "description": "Web API framework in Python"},
{"description": "Web API framework in Python", "name": "FastAPI"},
{"description": "DBs and Python", "name": "SQLModel"},
{"name": "ARQ"},
],
"baz": 6,
"foo": 12,
"foo": 1,
}
# insert_assert(new_data)
assert new_data == {
"foo": 12,
"foo": 1,
"bar": [
{
"name": "Pydantic",
Expand Down

0 comments on commit 7d9bf19

Please sign in to comment.