Skip to content

Commit

Permalink
Tests para catalogo xlsx con field faltante
Browse files Browse the repository at this point in the history
  • Loading branch information
lrromero committed Oct 3, 2019
1 parent fd2448f commit d14dba0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file not shown.
6 changes: 6 additions & 0 deletions tests/test_readers_and_writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,12 @@ def test_xlsx_write_missing_optional_fields_and_themes(self):
self.assertTrue('theme' not in written_dataset)
self.assertTrue('field' not in written_distribution)

@nose.tools.raises(NonParseableCatalog)
def test_missing_mandatory_field_on_xlsx_catalog_raises(self):
sample = self.get_sample(
'catalogo-justicia-missing-distribution-identifier.xlsx')
pydatajson.readers.read_catalog(sample)


if __name__ == '__main__':
nose.run(defaultTest=__name__)

0 comments on commit d14dba0

Please sign in to comment.