Skip to content

Commit

Permalink
[#1117] Remove a legacy test for ignore_missing
Browse files Browse the repository at this point in the history
ignore_missing() unit tests in ckan/new_tests/ have replaced this now.
  • Loading branch information
Sean Hammond committed Aug 1, 2013
1 parent 6195c29 commit 8bcccd2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions ckan/tests/lib/test_navl.py
Expand Up @@ -198,20 +198,6 @@ def test_default():
assert converted_data == {('1',): 'default', ('0',): '0 value'}, converted_data


def test_ignore_missing():
schema = {
"__junk": [ignore],
"__extras": [ignore, default("weee")],
"0": [default("default")],
"1": [ignore_missing, default("default")],
}

converted_data, errors = validate_flattened(data, schema)

assert not errors
assert converted_data == {('0',): '0 value'}, converted_data


def test_flatten():

data = {'extras': [{'key': 'genre', 'value': u'horror'},
Expand Down

0 comments on commit 8bcccd2

Please sign in to comment.