Skip to content

Commit 50f7574

Browse files
authored
Remove deprecated fixture decorators (#201)
As of pytest 3.0 the `yield_fixture` decorators are deprecated in favor of the "regular" `fixture`.
1 parent cdd1b07 commit 50f7574

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_selenium/pytest_selenium.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def driver_path(request):
184184
return request.config.getoption("driver_path")
185185

186186

187-
@pytest.yield_fixture
187+
@pytest.fixture
188188
def driver(request, driver_class, driver_kwargs):
189189
"""Returns a WebDriver instance based on options and capabilities"""
190190
driver = driver_class(**driver_kwargs)
@@ -203,7 +203,7 @@ def driver(request, driver_class, driver_kwargs):
203203
driver.quit()
204204

205205

206-
@pytest.yield_fixture
206+
@pytest.fixture
207207
def selenium(driver):
208208
yield driver
209209

0 commit comments

Comments
 (0)