Skip to content

Commit

Permalink
Adapted to the new version of datapackage-py
Browse files Browse the repository at this point in the history
  • Loading branch information
Lexman committed Jul 27, 2016
1 parent e266e3a commit cc39d09
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_structure(self):
row_limit=ROW_LIMIT,
report_limit=REPORT_LIMIT)

data = dp.metadata['resources'][0]['path']
data = dp.descriptor['resources'][0]['path']
valid, report, data = processor.run(data)

output_format = 'txt'
Expand All @@ -45,8 +45,8 @@ def test_structure(self):
# check the data against the schema
def test_schema(self):
data_format = 'csv'
data = dp.metadata['resources'][0]['path']
schema = dp.metadata['resources'][0]['schema']
data = dp.descriptor['resources'][0]['path']
schema = dp.descriptor['resources'][0]['schema']

processor = processors.SchemaProcessor(schema=schema,
format=data_format,
Expand Down

0 comments on commit cc39d09

Please sign in to comment.