diff --git a/tests/utils/mongo/company_mongo_service_test.py b/tests/utils/mongo/company_mongo_service_test.py index 52b58af..434198f 100644 --- a/tests/utils/mongo/company_mongo_service_test.py +++ b/tests/utils/mongo/company_mongo_service_test.py @@ -172,19 +172,28 @@ def test_get_where_malformed_yearly_results( "_id": "abc", "name": "Fielmann", "Hotel?": "Trivago", - "yearly_results": {"Vor Aeonen": 42, "2022": 4711}, + "yearly_results": { + "Vor Aeonen": {"auditors": [], 42: 1}, + "2022": {"auditors": [], 42: 1}, + }, }, { "_id": "abc", "name": "Fielmann", "Hotel?": "Trivago", - "yearly_results": {"1998": 42, "2022": 4711}, + "yearly_results": { + "1998": {"auditors": [], 42: 1}, + "2022": {"auditors": [], 42: 1}, + }, }, { "_id": "abc", "name": "Fielmann", "Hotel?": "Trivago", - "yearly_results": {"19": 42, "2022": 4711}, + "yearly_results": { + "19": {"auditors": [], 42: 1}, + "2022": {"auditors": [], 42: 1}, + }, }, ] mock_collection.find.return_value = mock_result