feat(core): APP use new SDK component (#1050)

This commit is contained in:
Fangyin Cheng
2024-01-10 10:39:04 +08:00
committed by GitHub
parent e11b72c724
commit fa8b5b190c
242 changed files with 2768 additions and 2163 deletions

View File

@@ -29,7 +29,7 @@ def dao(server_config):
@pytest.fixture
def default_entity_dict():
# TODO: build your default entity dict
return {}
return {"conv_uid": "test_conv_uid", "summary": "hello", "chat_mode": "chat_normal"}
def test_table_exist():
@@ -67,19 +67,6 @@ def test_entity_all():
pass
def test_dao_create(dao, default_entity_dict):
# TODO: implement your test case
req = ServeRequest(**default_entity_dict)
res: ServerResponse = dao.create(req)
assert res is not None
def test_dao_get_one(dao, default_entity_dict):
# TODO: implement your test case
req = ServeRequest(**default_entity_dict)
res: ServerResponse = dao.create(req)
def test_get_dao_get_list(dao):
# TODO: implement your test case
pass