Update docs
Remove not needed `request` arg in order to simplify the example.
This commit is contained in:
committed by
GitHub
parent
314d4afa57
commit
a9b44c4529
@@ -287,7 +287,7 @@ Note that we can also seamlessly use the ``yield`` syntax with ``with`` statemen
|
||||
import pytest
|
||||
|
||||
@pytest.fixture(scope="module")
|
||||
def smtp(request):
|
||||
def smtp():
|
||||
with smtplib.SMTP("smtp.gmail.com") as smtp:
|
||||
yield smtp # provide the fixture value
|
||||
|
||||
|
||||
Reference in New Issue
Block a user