linting
This commit is contained in:
@@ -25,6 +25,7 @@ def _read_feed(resource_name):
|
||||
with io.open(_resource_path(resource_name), encoding='utf-8') as xml:
|
||||
return xml.read()
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_meta_consistency():
|
||||
raise NotImplementedError()
|
||||
@@ -34,6 +35,7 @@ def test_meta_consistency():
|
||||
expected = _read_feed('meta_output.xml')
|
||||
assert expected == actual
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_menu_consistency():
|
||||
raise NotImplementedError()
|
||||
@@ -42,6 +44,7 @@ def test_menu_consistency():
|
||||
expected = _read_feed('menu_output.xml')
|
||||
assert expected == actual
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_empty_menu():
|
||||
raise NotImplementedError()
|
||||
@@ -50,6 +53,7 @@ def test_empty_menu():
|
||||
expected = _read_feed('empty_menu_output.xml')
|
||||
assert expected == actual
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_offers_dictionary():
|
||||
raise NotImplementedError()
|
||||
@@ -58,6 +62,7 @@ def test_offers_dictionary():
|
||||
expected = _read_feed('offers-dict-output.xml')
|
||||
assert expected == actual
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_missing_category():
|
||||
raise NotImplementedError()
|
||||
|
||||
+3
-1
@@ -48,11 +48,13 @@ def test_canteen_not_found(client, url):
|
||||
def test_canteen_menu_api_unavailable(client, api_offline):
|
||||
_request_check_meals(client)
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_canteen_menu_request(client, api_online_one_shot):
|
||||
raise NotImplementedError()
|
||||
_request_check_meals(client)
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def test_canteen_menu_cached(client, api_online_one_shot):
|
||||
raise NotImplementedError()
|
||||
@@ -66,8 +68,8 @@ def test_canteen_menu_second_request_indeed_fails(client, api_online_one_shot):
|
||||
views.cache.clear()
|
||||
_request_check_meals(client)
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
def _request_check_meals(client):
|
||||
raise NotImplementedError()
|
||||
response = client.get("/canteens/griebnitzsee/xml")
|
||||
|
||||
Reference in New Issue
Block a user