File size: 446 Bytes
7288748
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from sqlite3 import Cursor

from youtube_transcriber.storing.sqlitecontextmanager import SQLiteContextManager

def test_sqlite_context_manager_init():
    sqlite_context_manager = SQLiteContextManager("dummyinit.db")
    assert type(sqlite_context_manager) == SQLiteContextManager
    
def test_enter_context_manager():
    with SQLiteContextManager("dummy.db") as cursor:
        assert type(cursor) == Cursor
    os.remove("dummy.db")