File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 30
30
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
31
- name : Test with pytest
32
32
run : |
33
- pytest
33
+ pytest ./Tests/
Original file line number Diff line number Diff line change 8
8
import sqlite3
9
9
from typing import Any , Optional , Dict
10
10
11
- from tldw_Server_API . app . core . Notes . Notes_Library import NotesInteropService , logger as notes_library_logger_actual
12
- from tldw_Server_API . app . core . DB_Management . ChaChaNotes_DB import CharactersRAGDB
13
- from tldw_Server_API . app . core . DB_Management .ChaChaNotes_DB import (
11
+ from loguru import logger
12
+
13
+ from tldw_chatbook . DB .ChaChaNotes_DB import (
14
14
CharactersRAGDBError as Actual_CharactersRAGDBError ,
15
15
SchemaError as Actual_SchemaError ,
16
16
InputError as Actual_InputError ,
17
- ConflictError as Actual_ConflictError
17
+ ConflictError as Actual_ConflictError , CharactersRAGDB
18
18
)
19
+ from tldw_chatbook .Notes .Notes_Library import NotesInteropService
19
20
20
21
MODULE_PATH_PREFIX_CHACHA_DB = "tldw_Server_API.app.core.DB_Management.ChaChaNotes_DB"
21
22
NOTES_LIBRARY_MODULE_PATH = "tldw_Server_API.app.core.Notes.Notes_Library"
@@ -49,7 +50,7 @@ def tearDown(self):
49
50
try :
50
51
self .service .close_all_user_connections ()
51
52
except Exception as e :
52
- notes_library_logger_actual .error (f"Error during service.close_all_user_connections() in tearDown: { e } " ,
53
+ logger .error (f"Error during service.close_all_user_connections() in tearDown: { e } " ,
53
54
exc_info = True )
54
55
55
56
def test_initialization (self ):
You can’t perform that action at this time.
0 commit comments