From 0db275fba0c1793172db1e9f761c7dbc09ebd12d Mon Sep 17 00:00:00 2001 From: arkohut <39525455+arkohut@users.noreply.github.com> Date: Sun, 9 Jun 2024 00:30:29 +0800 Subject: [PATCH] test: missing attr when update entity --- memos/test_server.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/memos/test_server.py b/memos/test_server.py index 9625f9f..2217b6d 100644 --- a/memos/test_server.py +++ b/memos/test_server.py @@ -168,7 +168,6 @@ def test_update_entity(client): updated_entity = UpdateEntityParam( size=200, file_created_at="2023-01-02T00:00:00", - file_last_modified_at="2023-01-02T00:00:00", file_type="text/markdown", ) update_response = client.put( @@ -184,7 +183,7 @@ def test_update_entity(client): assert updated_data["id"] == entity_id assert updated_data["size"] == 200 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" # Test for entity not found