Skip to content

Commit

Permalink
v1.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Oct 5, 2017
1 parent 440ae72 commit fa0cc77
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion goodtables/VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
1.4.4
1.4.5

14 changes: 14 additions & 0 deletions tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,17 @@ def test_composite_primary_key_not_unique_issue_215(log):
assert log(report) == [
(1, 3, 1, 'unique-constraint'),
]


def test_validate_infer_fields_issue_223():
source = [
['name1', 'name2'],
['123', 'abc'],
['456', 'def'],
['789', 'ghi'],
]
schema = {
'fields': [{'name': 'name1'}]
}
report = validate(source, schema=schema, infer_fields=True)
assert report['valid']

0 comments on commit fa0cc77

Please sign in to comment.