A lot of spelling (#512)

This commit is contained in:
2024-01-04 18:01:59 +01:00
committed by GitHub
parent a0ba5d5027
commit 9ea3771f18
26 changed files with 57 additions and 68 deletions

View File

@ -91,7 +91,7 @@ def test_by_id_result(mock_mongo_connector: Mock, mock_collection: Mock) -> None
"""
mock_mongo_connector.database = {"companies": mock_collection}
service = CompanyMongoService(mock_mongo_connector)
mock_entry = {"id": "Does exist", "vaue": 42}
mock_entry = {"id": "Does exist", "value": 42}
mock_collection.find.return_value = [mock_entry]
id = CompanyID(DistrictCourt("a", "b"), "c").to_dict()
assert service.get_by_id(id) == mock_entry
@ -154,7 +154,7 @@ def test_get_where_financial_results(
assert service.get_where_yearly_results() == mock_result
def test_add_yearly_reslults(mock_mongo_connector: Mock, mock_collection: Mock) -> None:
def test_add_yearly_results(mock_mongo_connector: Mock, mock_collection: Mock) -> None:
mock_mongo_connector.database = {"companies": mock_collection}
service = CompanyMongoService(mock_mongo_connector)
mock_result: list = [{"_id": "abc", "brille?": "Fielmann", "Hotel?": "Trivago"}]

View File

@ -81,5 +81,5 @@ def test_initialize_network() -> None:
"id",
]
graph = initialize_network_without_metrics(edges=edges, nodes=nodes)
initialize_network_without_metrics(edges=edges, nodes=nodes)
assert isinstance(graph_reduced, nx.Graph)

View File

@ -57,5 +57,5 @@ def test_transform_date_to_iso(value: str, expected: str) -> None:
],
)
def test_remove_trailing_and_leading_quotes(value: str, expected_result: str) -> None:
result = string_tools.remove_traling_and_leading_quotes(value)
result = string_tools.remove_trailing_and_leading_quotes(value)
assert result == expected_result