Skip to content

Commit

Permalink
[#959] Split IATI Organisation file validation into its own test
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjwebb committed Aug 21, 2018
1 parent 62c21f4 commit 009c82d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cove_iati/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,8 @@ def test_common_checks_context_iati_ruleset():
context = iati.common_checks_context_iati({}, upload_dir, file_path, 'xml', api=True)
assert len(context['ruleset_errors']) == 17


def test_common_checks_context_iati_org_validation():
file_path = os.path.join('cove_iati', 'fixtures', 'basic_iati_org_valid.xml')
upload_dir = os.path.join('media', str(uuid.uuid4()))
context = iati.common_checks_context_iati({}, upload_dir, file_path, 'xml', api=True)
Expand Down

0 comments on commit 009c82d

Please sign in to comment.