mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-22 07:03:56 +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:
@ -14,7 +14,6 @@ def test_import() -> None:
|
||||
def test_get_company_data(full_db: Session) -> None:
|
||||
"""Checks if data from the company and district court tables can be accessed."""
|
||||
company_df = data_elements.get_company_data(full_db)
|
||||
|
||||
test_data = pd.DataFrame(
|
||||
{
|
||||
"company_id": {0: 1, 1: 2, 2: 3},
|
||||
@ -25,18 +24,28 @@ def test_get_company_data(full_db: Session) -> None:
|
||||
1: "Other Company GmbH",
|
||||
2: "Third Company GmbH",
|
||||
},
|
||||
"company_street": {0: "Sesamstr.", 1: "Sesamstr.", 2: None},
|
||||
"company_zip_code": {0: "58644", 1: "58636", 2: None},
|
||||
"company_city": {0: "TV City", 1: "TV City", 2: None},
|
||||
"company_longitude": {0: 7.6968, 1: 7.7032, 2: None},
|
||||
"company_latitude": {0: 51.3246, 1: 51.38, 2: None},
|
||||
"company_pos_accuracy": {0: 4.0, 1: 4.0, 2: None},
|
||||
"company_company_type": {0: None, 1: None, 2: None},
|
||||
"company_founding_date": {0: "2010-08-07"},
|
||||
"company_business_purpose": {
|
||||
0: 'Say "Hello World"',
|
||||
1: "Some purpose",
|
||||
},
|
||||
"company_street": {0: "Sesamstr.", 1: "Sesamstr."},
|
||||
"company_house_number": {0: "4", 1: "8"},
|
||||
"company_zip_code": {0: "58644", 1: "58636"},
|
||||
"company_city": {0: "TV City", 1: "TV City"},
|
||||
"company_longitude": {0: 7.6968, 1: 7.7032},
|
||||
"company_latitude": {0: 51.3246, 1: 51.38},
|
||||
"company_pos_accuracy": {0: 4.0, 1: 4.0},
|
||||
"company_capital_value": {0: 1000000.0, 2: 10000.0},
|
||||
"company_original_currency": {0: "DEUTSCHE_MARK", 2: "EURO"},
|
||||
"company_capital_type": {0: "HAFTEINLAGE", 2: "GRUNDKAPITAL"},
|
||||
"company_last_update": {
|
||||
0: "2023-01-01",
|
||||
1: "2023-01-01",
|
||||
2: "2023-01-01",
|
||||
},
|
||||
"company_sector": {0: None, 1: None, 2: None},
|
||||
"company_sector": {2: "Electronic"},
|
||||
"district_court_name": {
|
||||
0: "Amtsgericht Dortmund",
|
||||
1: "Amtsgericht Bochum",
|
||||
|
Reference in New Issue
Block a user