Skip to content

Commit

Permalink
lets start testing
Browse files Browse the repository at this point in the history
  • Loading branch information
7h3Rabbit committed Oct 10, 2024
1 parent bc72cc0 commit 610c3c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/html_validator_w3c.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,9 @@ def get_errors_for_html(url, html, local_translation):
continue
results.append({
'type': 'error',
'message': local_translation('TEXT_REVIEW_DEPRECATED_ELEMENT').format(element.replace('<', ''))
'message': local_translation(
'TEXT_REVIEW_DEPRECATED_ELEMENT'
).format(element.replace('<', ''))
})

return results
2 changes: 2 additions & 0 deletions tests/w3c_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ def get_errors(test_type, params):
with subprocess.Popen(command.split(), stdout=subprocess.PIPE) as process:
output, _ = process.communicate(timeout=get_config('general.request.timeout') * 10)

print('A', output)

json_result = json.loads(output)
if 'messages' in json_result:
errors = json_result['messages']
Expand Down

0 comments on commit 610c3c1

Please sign in to comment.