This commit is contained in:
Florian Bruhin 2016-08-19 00:00:35 +02:00
parent a88adcca17
commit 3d1859b13e

View File

@ -71,7 +71,7 @@ def _parse_file(test_name):
', '.join(allowed_keys),
', '.join(set(data.keys()))))
if not 'target' in data:
if 'target' not in data:
raise InvalidFile(test_name, "'target' key not found")
qtwebengine_todo = data.get('qtwebengine_todo', None)
@ -93,7 +93,9 @@ def test_hints(test_name, zoom_text_only, zoom_level, find_implementation,
parsed = _parse_file(test_name)
if parsed.qtwebengine_todo is not None and webengine:
# pylint: disable=no-member
pytest.xfail("QtWebEngine TODO: {}".format(parsed.qtwebengine_todo))
# pylint: enable=no-member
url_path = 'data/hints/html/{}'.format(test_name)
quteproc.open_path(url_path)