feat: add support for sqlite3 and multiple databases #2

Open
cgroschupp wants to merge 8 commits from feature/sqlite3-and-multiple-db-support into master
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 78fb13fb26 - Show all commits

View File

@ -144,7 +144,7 @@ def test_get_single_media(media_repo: MediaRepository, mock_db_conn: Tuple[Any,
assert file.base64hash == "abc123"
media_repo._execute.assert_called_with( # type: ignore
"SELECT media_id, creation_ts, base64hash, file_size_bytes from mediaapi_media_repository WHERE media_id = %s;",
"SELECT media_id, creation_ts, base64hash, file_size_bytes\nfrom mediaapi_media_repository WHERE media_id = %s;",
("mxid123",),
)
@ -279,7 +279,7 @@ def test_get_local_user_media(media_repo: MediaRepository, mock_db_conn: Tuple[A
assert files[1].media_id == "media2"
media_repo._execute.assert_called_with( # type: ignore
"SELECT media_id, creation_ts, base64hash, file_size_bytes FROM mediaapi_media_repository WHERE user_id = %s;",
"SELECT media_id, creation_ts, base64hash, file_size_bytes\nFROM mediaapi_media_repository WHERE user_id = %s;",
("@user:domain.com",),
)