Skip to content

Commit

Permalink
Delete 2.02 fail test data that now passes at 2.03
Browse files Browse the repository at this point in the history
  • Loading branch information
allthatilk committed Nov 22, 2017
1 parent 36eaa53 commit 4376a9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 50 deletions.

This file was deleted.

5 changes: 2 additions & 3 deletions tests/test_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,12 @@ def test_pass_files(activity_schema, filepath):
assert iati.validator.is_iati_xml(dataset, activity_schema)

@pytest.mark.parametrize('filepath', list_xml_files_recursively('tests/activity-tests/should-fail/'))
def test_fail_2_02_files(activity_schema, filepath):
def test_fail_files(activity_schema, filepath):
"""Check that all legacy 'should-fail' test files are XML but fail Schema validation."""
dataset = load_as_dataset(filepath)
schema = iati.default.activity_schema(version='2.02')

assert iati.validator.is_xml(dataset)
assert not iati.validator.is_iati_xml(dataset, schema)
assert not iati.validator.is_iati_xml(dataset, activity_schema)


@pytest.mark.parametrize('filepath', list_xml_files_recursively('tests/should-fail/'))
Expand Down

0 comments on commit 4376a9e

Please sign in to comment.