Skip to content

Commit 0c1de8f

Browse files
committed
Suppress a warning from pytest collector
1 parent f87d822 commit 0c1de8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/rpc_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from pytest import fixture, mark, raises
44
from six import text_type
5-
from werkzeug.test import Client as TestClient
5+
from werkzeug.test import Client as WTestClient
66
from werkzeug.wrappers import Response
77

88
from .nirum_schema import import_nirum_fixture
@@ -83,7 +83,7 @@ def fx_music_wsgi():
8383

8484
@fixture
8585
def fx_test_client(fx_music_wsgi):
86-
return TestClient(fx_music_wsgi, Response)
86+
return WTestClient(fx_music_wsgi, Response)
8787

8888

8989
def test_wsgi_app_ping(fx_music_wsgi, fx_test_client):
@@ -271,7 +271,7 @@ class ExtendedWsgiApp(WsgiApp):
271271
def make_response(self, status_code, headers, content):
272272
return (status_code, headers, content, None)[:arity]
273273
wsgi_app = ExtendedWsgiApp(MusicServiceImpl())
274-
client = TestClient(wsgi_app, Response)
274+
client = WTestClient(wsgi_app, Response)
275275
with raises(TypeError) as e:
276276
client.post('/?method=get_music_by_artist_name',
277277
data=json.dumps({'artist_name': u'damien rice'}))

0 commit comments

Comments
 (0)