Update fixture.rst
Remove yet another not needed `request` argument in fixture definition.
This commit is contained in:
parent
a9b44c4529
commit
f0533194ed
|
@ -253,7 +253,7 @@ the code after the *yield* statement serves as the teardown code:
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
@pytest.fixture(scope="module")
|
@pytest.fixture(scope="module")
|
||||||
def smtp(request):
|
def smtp():
|
||||||
smtp = smtplib.SMTP("smtp.gmail.com")
|
smtp = smtplib.SMTP("smtp.gmail.com")
|
||||||
yield smtp # provide the fixture value
|
yield smtp # provide the fixture value
|
||||||
print("teardown smtp")
|
print("teardown smtp")
|
||||||
|
|
Loading…
Reference in New Issue