Skip to content

Commit

Permalink
[#2844] update old tests for optional urls
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Jan 25, 2016
1 parent aca938f commit 9c0050b
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ckan/tests/legacy/lib/test_dictization_schema.py
Expand Up @@ -113,19 +113,9 @@ def test_1_package_schema(self):

assert errors == {
'name': [u'That URL is already in use.'],
'resources': [{}, {'url': [u'Missing value']}]
}, pformat(errors)

data["id"] = package_id

converted_data, errors = validate(data,
default_update_package_schema(),
self.context)

assert errors == {
'resources': [{}, {'url': [u'Missing value']}]
}, pformat(errors)

data['name'] = '????jfaiofjioafjij'

converted_data, errors = validate(data,
Expand All @@ -134,7 +124,6 @@ def test_1_package_schema(self):
assert errors == {
'name': [u'Must be purely lowercase alphanumeric (ascii) '
'characters and these symbols: -_'],
'resources': [{}, {'url': [u'Missing value']}]
}, pformat(errors)

def test_2_group_schema(self):
Expand Down

0 comments on commit 9c0050b

Please sign in to comment.