Changes to the database (#67)

In this PR are pruposed changed that come up when i started the data
migration.
Plese review them an approve and disaprove.
This commit is contained in:
2023-08-24 17:23:19 +02:00
committed by GitHub
parent ba30ba2cc5
commit 06e59b8061
8 changed files with 44 additions and 49 deletions

View File

@ -1 +0,0 @@
"""Tests for config module."""

View File

@ -1 +0,0 @@
"""Mongo utils module."""

View File

@ -1 +0,0 @@
"""Tests for utils.postgres module."""

View File

@ -18,7 +18,7 @@ def test_init_db() -> None:
with patch(
"aki_prj23_transparenzregister.utils.postgres.connector.get_engine"
) as mock_get_engine, patch(
"aki_prj23_transparenzregister.utils.postgres.entities.declarative_base"
"aki_prj23_transparenzregister.utils.postgres.connector.declarative_base"
) as mock_declarative_base, patch(
"aki_prj23_transparenzregister.utils.postgres.connector.JsonFileConfigProvider"
) as mock_provider:
@ -33,4 +33,3 @@ def test_init_db() -> None:
mock_value.get_postgre_connection_string.return_value = ""
init_db()
assert True

View File

@ -1,4 +1,4 @@
def test_import() -> None:
from aki_prj23_transparenzregister.utils.postgres import entities
assert entities is not None
assert entities