test: Update to new functions

This commit is contained in:
TrisNol 2023-10-17 18:47:25 +02:00
parent 35d54301e8
commit 83d313150c

View File

@ -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