Skip to content

Commit

Permalink
Get rid of deprecated yield_fixture
Browse files Browse the repository at this point in the history
  • Loading branch information
asvetlov committed Feb 9, 2018
1 parent ed3f422 commit 9d2ca50
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/test_client_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
_merge_ssl_params)


@pytest.yield_fixture
@pytest.fixture
def make_request(loop):
request = None

Expand All @@ -46,7 +46,7 @@ def protocol(loop):
return protocol


@pytest.yield_fixture
@pytest.fixture
def transport(buf):
transport = mock.Mock()

Expand Down
2 changes: 1 addition & 1 deletion tests/test_client_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def connector(loop):
conn.close()


@pytest.yield_fixture
@pytest.fixture
def create_session(loop):
session = None

Expand Down
2 changes: 1 addition & 1 deletion tests/test_test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def app():
return _create_example_app()


@pytest.yield_fixture
@pytest.fixture
def test_client(loop, app):
client = _TestClient(_TestServer(app, loop=loop), loop=loop)
loop.run_until_complete(client.start_server())
Expand Down
4 changes: 2 additions & 2 deletions tests/test_web_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ def make_request(method, path, headers=CIMultiDict(),
app=app, **kwargs)


@pytest.yield_fixture
@pytest.fixture
def buf():
return bytearray()


@pytest.yield_fixture
@pytest.fixture
def writer(buf):
writer = mock.Mock()

Expand Down

0 comments on commit 9d2ca50

Please sign in to comment.