Skip to content

Commit

Permalink
Uncomment out second properties call in item.py and fix test for mism…
Browse files Browse the repository at this point in the history
…atched status
  • Loading branch information
aschroed committed Oct 25, 2016
1 parent f91b11c commit 942071b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/encoded/audit/item.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def audit_item_schema(value, system):
properties['schema_version'] = target_version

properties['uuid'] = str(context.uuid)
validated, errors = validate(context.schema, properties) # , properties)
validated, errors = validate(context.schema, properties, properties)
for error in errors:
category = 'validation error'
path = list(error.path)
Expand Down
2 changes: 1 addition & 1 deletion src/encoded/tests/test_audit_item.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def test_audit_item_status_mismatch(testapp, experiment, embed_testapp):
res = embed_testapp.get(experiment['@id'] + '/@@audit-self')
print(res)
errors_list = res.json['audit']
assert any(error['name'] == 'mismatched_status' for error in errors_list)
assert any(error['category'] == 'mismatched status' for error in errors_list)

0 comments on commit 942071b

Please sign in to comment.