|
2 | 2 |
|
3 | 3 | from pytest import fixture, mark, raises |
4 | 4 | from six import text_type |
5 | | -from werkzeug.test import Client as TestClient |
| 5 | +from werkzeug.test import Client as WTestClient |
6 | 6 | from werkzeug.wrappers import Response |
7 | 7 |
|
8 | 8 | from .nirum_schema import import_nirum_fixture |
@@ -83,7 +83,7 @@ def fx_music_wsgi(): |
83 | 83 |
|
84 | 84 | @fixture |
85 | 85 | def fx_test_client(fx_music_wsgi): |
86 | | - return TestClient(fx_music_wsgi, Response) |
| 86 | + return WTestClient(fx_music_wsgi, Response) |
87 | 87 |
|
88 | 88 |
|
89 | 89 | def test_wsgi_app_ping(fx_music_wsgi, fx_test_client): |
@@ -271,7 +271,7 @@ class ExtendedWsgiApp(WsgiApp): |
271 | 271 | def make_response(self, status_code, headers, content): |
272 | 272 | return (status_code, headers, content, None)[:arity] |
273 | 273 | wsgi_app = ExtendedWsgiApp(MusicServiceImpl()) |
274 | | - client = TestClient(wsgi_app, Response) |
| 274 | + client = WTestClient(wsgi_app, Response) |
275 | 275 | with raises(TypeError) as e: |
276 | 276 | client.post('/?method=get_music_by_artist_name', |
277 | 277 | data=json.dumps({'artist_name': u'damien rice'})) |
|
0 commit comments