Script for the transfer of data from Mongo to SQL (#80)

This commit is contained in:
2023-09-11 20:21:35 +02:00
committed by GitHub
parent 2ea99c8c17
commit d64f53eca9
22 changed files with 1565 additions and 73 deletions

View File

@ -18,7 +18,8 @@ def test_import_enrich_company_financials() -> None:
@patch(
"aki_prj23_transparenzregister.apps.enrich_company_financials.CompanyMongoService"
)
def test_work(mock_compnay_service: Mock, mock_bundesanzeiger: Mock) -> None:
def test_work(mock_company_service: Mock, mock_bundesanzeiger: Mock) -> None:
"""Tests the readout of the company financials."""
mock_bundesanzeiger.return_value = pd.DataFrame(
[
{
@ -28,9 +29,8 @@ def test_work(mock_compnay_service: Mock, mock_bundesanzeiger: Mock) -> None:
}
]
)
# mock_compnay_service.add_yearly_resreturn_value
enrich_company_financials.work(
{"_id": "", "name": "ABC AG", "location": {"city": "Haltern am See"}},
mock_compnay_service,
mock_company_service,
)
assert enrich_company_financials