Handle offers without a category

This commit is contained in:
f4lco
2021-01-27 20:54:48 +01:00
parent 4fad78261a
commit 9850231c4f
4 changed files with 2395 additions and 1 deletions
+10
View File
@@ -62,3 +62,13 @@ def test_offers_dictionary():
expected = _read_feed('offers-dict-output.xml')
assert expected == actual
def test_missing_category():
menu = _read_menu('missing-category.json')
actual = feed.render_menu(menu)
expected = _read_feed('missing-category-output.xml')
assert expected == actual