mirror of
https://github.com/tcsenpai/pensieve.git
synced 2025-06-11 05:27:10 +00:00
test: missing attr when update entity
This commit is contained in:
parent
885629bf15
commit
0db275fba0
@ -168,7 +168,6 @@ def test_update_entity(client):
|
|||||||
updated_entity = UpdateEntityParam(
|
updated_entity = UpdateEntityParam(
|
||||||
size=200,
|
size=200,
|
||||||
file_created_at="2023-01-02T00:00:00",
|
file_created_at="2023-01-02T00:00:00",
|
||||||
file_last_modified_at="2023-01-02T00:00:00",
|
|
||||||
file_type="text/markdown",
|
file_type="text/markdown",
|
||||||
)
|
)
|
||||||
update_response = client.put(
|
update_response = client.put(
|
||||||
@ -184,7 +183,7 @@ def test_update_entity(client):
|
|||||||
assert updated_data["id"] == entity_id
|
assert updated_data["id"] == entity_id
|
||||||
assert updated_data["size"] == 200
|
assert updated_data["size"] == 200
|
||||||
assert updated_data["file_created_at"] == "2023-01-02T00:00:00"
|
assert updated_data["file_created_at"] == "2023-01-02T00:00:00"
|
||||||
assert updated_data["file_last_modified_at"] == "2023-01-02T00:00:00"
|
assert updated_data["file_last_modified_at"] == "2023-01-01T00:00:00"
|
||||||
assert updated_data["file_type"] == "text/markdown"
|
assert updated_data["file_type"] == "text/markdown"
|
||||||
|
|
||||||
# Test for entity not found
|
# Test for entity not found
|
||||||
|
Loading…
x
Reference in New Issue
Block a user