fix merge bugs.

This commit is contained in:
Liu Zhicong
2023-11-30 21:14:24 -08:00
parent 50e22817c1
commit 83149b5590
3 changed files with 31 additions and 4 deletions
+28
View File
@@ -0,0 +1,28 @@
import sys
import os
import logging
import asyncio
import time
import unittest
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.append("{}/../src/".format(dir_path))
from aios_kernel import WorkspaceEnvironment
async def test_workspace():
test_env = WorkspaceEnvironment("test")
test_env._add_document_dir(f"{dir_path}/../rootfs/test_doc")
test_env._start_scan_document()
catalogs = await test_env.get_knowledege_catalog()
print(catalogs)
asyncio.sleep(60*60)
if __name__ == "__main__":
asyncio.run(test_workspace())
print("OK!")
time.sleep(60*60)