mirror of
https://github.com/jaypyles/Scraperr.git
synced 2026-05-03 16:00:41 +00:00
6c56f2f161
* chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: refactor wip * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: work in progress * chore: refactor wip * chore: work in progress * chore: refactor wip * chore: refactor wip * chore: refactor wip * fix: build * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress test * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests * fix: cypress tests
18 lines
330 B
Python
18 lines
330 B
Python
# STL
|
|
import sqlite3
|
|
|
|
# LOCAL
|
|
from api.backend.database.schema import INIT_QUERY
|
|
from api.backend.tests.constants import TEST_DB_PATH
|
|
|
|
|
|
def connect_to_db():
|
|
conn = sqlite3.connect(TEST_DB_PATH)
|
|
cur = conn.cursor()
|
|
|
|
for query in INIT_QUERY.split(";"):
|
|
cur.execute(query)
|
|
|
|
conn.commit()
|
|
return conn, cur
|