Skip to content

Commit

Permalink
Remove deprecated fixture decorators (#201)
Browse files Browse the repository at this point in the history
As of pytest 3.0 the `yield_fixture` decorators are deprecated in favor
of the "regular" `fixture`.
  • Loading branch information
BeyondEvil committed Oct 22, 2018
1 parent cdd1b07 commit 50f7574
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytest_selenium/pytest_selenium.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def driver_path(request):
return request.config.getoption("driver_path")


@pytest.yield_fixture
@pytest.fixture
def driver(request, driver_class, driver_kwargs):
"""Returns a WebDriver instance based on options and capabilities"""
driver = driver_class(**driver_kwargs)
Expand All @@ -203,7 +203,7 @@ def driver(request, driver_class, driver_kwargs):
driver.quit()


@pytest.yield_fixture
@pytest.fixture
def selenium(driver):
yield driver

Expand Down

0 comments on commit 50f7574

Please sign in to comment.