mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 07:39:41 +02:00
fix: Typo, assert_derserialize => assert_deserialize (#3814)
This commit is contained in:
parent
bdac51bae2
commit
e80ba7dff3
7 changed files with 426 additions and 175 deletions
|
@ -3,7 +3,7 @@ from httpx import Response
|
|||
|
||||
def assert_ignore_keys(dict1: dict, dict2: dict, ignore_keys: list | None = None) -> None:
|
||||
"""
|
||||
Itterates through a list of keys and checks if they are in the the provided ignore_keys list,
|
||||
Iterates through a list of keys and checks if they are in the the provided ignore_keys list,
|
||||
if they are not in the ignore_keys list, it checks the value of the key in the provided against
|
||||
the value provided in dict2. If the value of the key in dict1 is not equal to the value of the
|
||||
key in dict2, The assertion fails. Useful for testing id / group_id agnostic data
|
||||
|
@ -20,6 +20,6 @@ def assert_ignore_keys(dict1: dict, dict2: dict, ignore_keys: list | None = None
|
|||
assert value == dict2[key]
|
||||
|
||||
|
||||
def assert_derserialize(response: Response, expected_status_code=200) -> dict:
|
||||
def assert_deserialize(response: Response, expected_status_code=200) -> dict:
|
||||
assert response.status_code == expected_status_code
|
||||
return response.json()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue