Skip to content

Commit

Permalink
Add not on broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 12, 2012
1 parent 23449a4 commit 2c87ae7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckanext/resourceproxy/tests/test_proxy.py
Expand Up @@ -11,7 +11,6 @@
import ckan.tests as tests
import ckan.plugins as plugins
from ckan.lib.create_test_data import CreateTestData
from ckan.lib.dictization.model_dictize import resource_dictize

import ckanext.resourceproxy.plugin as proxy

Expand Down Expand Up @@ -71,7 +70,10 @@ def test_resource_proxy(self):
assert result.status_code == 200, result.status_code
assert "yes, I'm proxied" in result.content, result.content

# fixme: there is a wrong url returned
# strangely the before_map in the plugin is never called
proxied_url = proxy.get_proxified_resource_url(self.data_dict)
result = self.app.get(proxied_url).follow()
print proxied_url
result = self.app.get(proxied_url)
assert result.status == 200, result.status
assert "yes, I'm proxied" in result.body, result.body

0 comments on commit 2c87ae7

Please sign in to comment.