Skip to content

Commit

Permalink
Don't pass charset to content_type; remove defunct tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sloria committed Mar 16, 2017
1 parent 4bfafb0 commit 775178e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
14 changes: 0 additions & 14 deletions tests/test_examples.py
Expand Up @@ -21,20 +21,6 @@ def test_api_index(self, client):
assert res.status_code == 200
assert res.json == {'message': 'Welcome to the API!'}

def test_api_index_append_slash(self, client):
res = client.get('/api')
assert res.status_code == 301
res = res.follow()
assert res.status_code == 200
assert res.request.path == '/api/'

def test_api_index_merge_slashes(self, client):
res = client.get('/api//')
assert res.status_code == 301
res = res.follow()
assert res.status_code == 200
assert res.request.path == '/api/'

class TestMakoApp:

@pytest.fixture()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_routing.py
Expand Up @@ -20,11 +20,11 @@ def configure_app(app):
class MyResource:

def get(self, request):
return web.Response(body=b'Got it', content_type='text/plain; charset=utf-8')
return web.Response(body=b'Got it', content_type='text/plain')

@asyncio.coroutine
def post(self, request):
return web.Response(body=b'Posted it', content_type='text/plain; charset=utf-8')
return web.Response(body=b'Posted it', content_type='text/plain')

class MyResource2:

Expand Down

0 comments on commit 775178e

Please sign in to comment.