fix strict_slashes bug when route has slash

This commit is contained in:
r0fls
2018-01-01 02:21:57 -08:00
parent 5b051f0891
commit 8c28ce7d79
2 changed files with 9 additions and 5 deletions

View File

@@ -141,16 +141,16 @@ def test_route_slashes_overload():
return text('OK')
request, response = app.test_client.get('/get')
request, response = app.test_client.get('/hello')
assert response.text == 'OK'
request, response = app.test_client.get('/get/')
request, response = app.test_client.get('/hello/')
assert response.text == 'OK'
request, response = app.test_client.post('/get')
request, response = app.test_client.post('/hello')
assert response.text == 'OK'
request, response = app.test_client.post('/get/')
request, response = app.test_client.post('/hello/')
assert response.text == 'OK'
def test_route_optional_slash():