mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 03:33:55 +02:00
Rework the transfer of company data to fit the new data in the mongodb (#188)
This adds the additional company data as proposed to the sql db. - [x] @TrisNol Is everything included or did I miss a feature. Relations are in another issue. - [x] @KM-R New DB features for the Dashbord for your review.
This commit is contained in:
@ -8,6 +8,7 @@ import pytest
|
||||
from sqlalchemy.orm import Session, sessionmaker
|
||||
|
||||
from aki_prj23_transparenzregister.config.config_template import SQLiteConnectionString
|
||||
from aki_prj23_transparenzregister.models.company import CapitalTypeEnum
|
||||
from aki_prj23_transparenzregister.utils import data_transfer
|
||||
from aki_prj23_transparenzregister.utils.sql import entities
|
||||
from aki_prj23_transparenzregister.utils.sql.connector import (
|
||||
@ -143,11 +144,17 @@ def full_db(empty_db: Session, finance_statements: list[dict[str, Any]]) -> Sess
|
||||
name="Some Company GmbH",
|
||||
street="Sesamstr.",
|
||||
zip_code="58644",
|
||||
house_number="4",
|
||||
city="TV City",
|
||||
last_update=datetime.date.fromisoformat("2023-01-01"),
|
||||
latitude=51.3246,
|
||||
longitude=7.6968,
|
||||
pos_accuracy=4.0,
|
||||
founding_date=datetime.date(2010, 8, 7),
|
||||
capital_value=1000000,
|
||||
original_currency="DM",
|
||||
capital_type=CapitalTypeEnum.HAFTEINLAGE,
|
||||
business_purpose='Say "Hello World"',
|
||||
),
|
||||
entities.Company(
|
||||
hr="HRB 123",
|
||||
@ -155,17 +162,23 @@ def full_db(empty_db: Session, finance_statements: list[dict[str, Any]]) -> Sess
|
||||
name="Other Company GmbH",
|
||||
street="Sesamstr.",
|
||||
zip_code="58636",
|
||||
house_number="8",
|
||||
city="TV City",
|
||||
last_update=datetime.date.fromisoformat("2023-01-01"),
|
||||
latitude=51.38,
|
||||
longitude=7.7032,
|
||||
pos_accuracy=4.0,
|
||||
business_purpose="Some purpose",
|
||||
),
|
||||
entities.Company(
|
||||
hr="HRB 12",
|
||||
court_id=2,
|
||||
name="Third Company GmbH",
|
||||
last_update=datetime.date.fromisoformat("2023-01-01"),
|
||||
sector="Electronic",
|
||||
capital_value=10000,
|
||||
original_currency="EUR",
|
||||
capital_type=CapitalTypeEnum.GRUNDKAPITAL,
|
||||
),
|
||||
]
|
||||
)
|
||||
|
Reference in New Issue
Block a user