mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-03 04:25:24 +02:00
fix: Allow scraping calories as number (#4854)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
parent
eafb7b9ffc
commit
795c2cf575
2 changed files with 42 additions and 5 deletions
|
@ -537,6 +537,24 @@ nutrition_test_cases = (
|
|||
"fatContent": "10",
|
||||
},
|
||||
),
|
||||
CleanerCase(
|
||||
test_id="calories as int",
|
||||
input={
|
||||
"calories": 100,
|
||||
},
|
||||
expected={
|
||||
"calories": "100",
|
||||
},
|
||||
),
|
||||
CleanerCase(
|
||||
test_id="calories as float",
|
||||
input={
|
||||
"calories": 100.0,
|
||||
},
|
||||
expected={
|
||||
"calories": "100.0",
|
||||
},
|
||||
),
|
||||
CleanerCase(
|
||||
test_id="invalid keys get removed",
|
||||
input={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue