@@ -16,55 +16,55 @@ class DatabaseBase(ABC):
1616
1717 @abstractmethod
1818 async def initialize_cosmos (self ) -> None :
19- """Initialize the cosmosdb client and create container if needed. """
20- pass
19+ """Initialize the cosmosdb client and create container if needed"""
20+ pass # pragma: no cover
2121
2222 @abstractmethod
2323 async def create_batch (self , user_id : str , batch_id : uuid .UUID ) -> BatchRecord :
24- """Create a new conversion batch. """
25- pass
24+ """Create a new conversion batch"""
25+ pass # pragma: no cover
2626
2727 @abstractmethod
2828 async def get_file_logs (self , file_id : str ) -> Dict :
29- """Retrieve all logs for a file. """
30- pass
29+ """Retrieve all logs for a file"""
30+ pass # pragma: no cover
3131
3232 @abstractmethod
3333 async def get_batch_from_id (self , batch_id : str ) -> Dict :
34- """Retrieve all logs for a file. """
35- pass
34+ """Retrieve all logs for a file"""
35+ pass # pragma: no cover
3636
3737 @abstractmethod
3838 async def get_batch_files (self , batch_id : str ) -> List [Dict ]:
39- """Retrieve all files for a batch. """
40- pass
39+ """Retrieve all files for a batch"""
40+ pass # pragma: no cover
4141
4242 @abstractmethod
4343 async def delete_file_logs (self , file_id : str ) -> None :
44- """Delete all logs for a file. """
45- pass
44+ """Delete all logs for a file"""
45+ pass # pragma: no cover
4646
4747 @abstractmethod
4848 async def get_user_batches (self , user_id : str ) -> Dict :
49- """Retrieve all batches for a user. """
50- pass
49+ """Retrieve all batches for a user"""
50+ pass # pragma: no cover
5151
5252 @abstractmethod
5353 async def add_file (
5454 self , batch_id : uuid .UUID , file_id : uuid .UUID , file_name : str , storage_path : str
5555 ) -> FileRecord :
56- """Add a file entry to the database. """
57- pass
56+ """Add a file entry to the database"""
57+ pass # pragma: no cover
5858
5959 @abstractmethod
6060 async def get_batch (self , user_id : str , batch_id : str ) -> Optional [Dict ]:
61- """Retrieve a batch and its associated files. """
62- pass
61+ """Retrieve a batch and its associated files"""
62+ pass # pragma: no cover
6363
6464 @abstractmethod
6565 async def get_file (self , file_id : str ) -> Optional [Dict ]:
66- """Retrieve a file entry along with its logs. """
67- pass
66+ """Retrieve a file entry along with its logs"""
67+ pass # pragma: no cover
6868
6969 @abstractmethod
7070 async def add_file_log (
@@ -76,39 +76,40 @@ async def add_file_log(
7676 agent_type : AgentType ,
7777 author_role : AuthorRole ,
7878 ) -> None :
79- """Log a file status update. """
80- pass
79+ """Log a file status update"""
80+ pass # pragma: no cover
8181
8282 @abstractmethod
8383 async def update_file (self , file_record : FileRecord ) -> None :
84- """Update file record. """
85- pass
84+ """Update file record"""
85+ pass # pragma: no cover
8686
8787 @abstractmethod
8888 async def update_batch (self , batch_record : BatchRecord ) -> BatchRecord :
8989 """Update a batch record"""
90+ pass # pragma: no cover
9091
9192 @abstractmethod
9293 async def delete_all (self , user_id : str ) -> None :
93- """Delete all batches, files, and logs for a user. """
94- pass
94+ """Delete all batches, files, and logs for a user"""
95+ pass # pragma: no cover
9596
9697 @abstractmethod
9798 async def delete_batch (self , user_id : str , batch_id : str ) -> None :
98- """Delete a batch along with its files and logs. """
99- pass
99+ """Delete a batch along with its files and logs"""
100+ pass # pragma: no cover
100101
101102 @abstractmethod
102103 async def delete_file (self , user_id : str , batch_id : str , file_id : str ) -> None :
103- """Delete a file and its logs, and update batch file count. """
104- pass
104+ """Delete a file and its logs, and update batch file count"""
105+ pass # pragma: no cover
105106
106107 @abstractmethod
107108 async def get_batch_history (self , user_id : str , batch_id : str ) -> List [Dict ]:
108- """Retrieve all logs for a batch. """
109- pass
109+ """Retrieve all logs for a batch"""
110+ pass # pragma: no cover
110111
111112 @abstractmethod
112113 async def close (self ) -> None :
113- """Close database connection. """
114- pass
114+ """Close database connection"""
115+ pass # pragma: no cover
0 commit comments