Skip to content

Commit

Permalink
add print for error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
rshewitt committed Apr 18, 2023
1 parent a1f2f5a commit a3c0959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def test_dataset_validity(schema, dataset, is_valid, request):
jsonschema.validate(json_data, schema=dataset_schema)
output = is_valid
except jsonschema.ValidationError as e:
# error_message = "error: " + e.message + ". offending element: " + e.json_path
error_message = "error: " + e.message + ". offending element: " + e.json_path
print(error_message)
output = not is_valid

assert output

1 comment on commit a3c0959

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
datagovharvester
   __init__.py10100% 
   example.py944 56%
TOTAL10460% 

Tests Skipped Failures Errors Time
15 0 💤 0 ❌ 0 🔥 20.229s ⏱️

Please sign in to comment.