Skip to content

Commit

Permalink
[master][tests][s]: Got rid of dependency on WebTest 1.3.3 as it conf…
Browse files Browse the repository at this point in the history
…licts with Pylons package versions.
  • Loading branch information
David Read committed Jan 4, 2012
1 parent 50888ec commit 79dcd5d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions ckan/tests/functional/test_cors.py
@@ -1,15 +1,10 @@
import webtest
from ckan.tests import TestController
from ckan.tests import is_search_supported

class TestCORS(TestController):

def test_options(self):
# need webtest as it has request method
self.ourapp = webtest.TestApp(self.wsgiapp)
out = self.ourapp.request('/', method='OPTIONS')
assert out.status_int == 200, out
print out
out = self.app._gen_request(method='OPTIONS', url='/', status=200)
assert len(str(out.body)) == 0, 'OPTIONS must return no content'

def test_headers(self):
Expand Down

0 comments on commit 79dcd5d

Please sign in to comment.