Skip to content

Commit

Permalink
[#834] cove_iati: add functional test
Browse files Browse the repository at this point in the history
  • Loading branch information
edugomez committed Oct 5, 2017
1 parent f948e26 commit a627eef
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cove_iati/tests_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def buttons():
('basic_iati_unordered_invalid_iso_dates.xlsx', ['Invalid against Schema'], True),
('bad.xml', ['We think you tried to upload a XML file'], False),
('bad_spaces.csv', ['Converted to XML 2 Errors'], True),
('basic_iati_ruleset_errors.xml', ['Invalid against Schema 12 Errors', '20140101',
'\'budget\': Missing child element(s), expected is value',
'Ruleset Errors 16 Errors',
'Start date (2010-01-01) must be before end date (2009-01-01)',
'participating-org/@ref/should match the regex [^\:\&\|\?]+'], False),
# We should not server error when there's fields not in the schema
('not_iati.csv', ['Data Supplied', 'Invalid against Schema'], True),
('namespace_good.xlsx', ['Converted to XML', 'Invalid against Schema', '2 Errors'], True),
Expand Down

0 comments on commit a627eef

Please sign in to comment.