Skip to content

Commit

Permalink
Revert "Add tests for non-existent resource"
Browse files Browse the repository at this point in the history
The code this commit is testing was changed in 0ddeec8, and this test isn't
relevant anymore.

This reverts commit 5c2c13b.

Conflicts:
	ckanext/resourceproxy/tests/test_proxy.py
  • Loading branch information
vitorbaptista committed Jun 24, 2014
1 parent 5dcf7a7 commit 8b168f9
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions ckanext/resourceproxy/tests/test_proxy.py
Expand Up @@ -170,12 +170,3 @@ def test_resource_url_doesnt_proxy_non_http_or_https_urls_by_default(self):
proxied_url = proxy.get_proxified_resource_url(data_dict, scheme)
assert non_proxied_url == url, non_proxied_url
assert proxied_url != url, proxied_url

def test_non_existent_resource(self):
self.data_dict = {'package': {'name': 'doesnotexist'},
'resource': {'id': 'doesnotexist'}}

proxied_url = proxy.get_proxified_resource_url(self.data_dict)
result = self.app.get(proxied_url, status='*')
assert result.status == 404, result.status
assert 'Resource not found' in result.body, result.body

0 comments on commit 8b168f9

Please sign in to comment.