Skip to content

Commit 29984de

Browse files
committed
tests
1 parent 37c251e commit 29984de

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/python-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3131
- name: Test with pytest
3232
run: |
33-
pytest
33+
pytest ./Tests/

Tests/Notes/test_notes_library_unit.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
import sqlite3
99
from typing import Any, Optional, Dict
1010

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 (
1414
CharactersRAGDBError as Actual_CharactersRAGDBError,
1515
SchemaError as Actual_SchemaError,
1616
InputError as Actual_InputError,
17-
ConflictError as Actual_ConflictError
17+
ConflictError as Actual_ConflictError, CharactersRAGDB
1818
)
19+
from tldw_chatbook.Notes.Notes_Library import NotesInteropService
1920

2021
MODULE_PATH_PREFIX_CHACHA_DB = "tldw_Server_API.app.core.DB_Management.ChaChaNotes_DB"
2122
NOTES_LIBRARY_MODULE_PATH = "tldw_Server_API.app.core.Notes.Notes_Library"
@@ -49,7 +50,7 @@ def tearDown(self):
4950
try:
5051
self.service.close_all_user_connections()
5152
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}",
5354
exc_info=True)
5455

5556
def test_initialization(self):

0 commit comments

Comments
 (0)