Skip to content

Commit 09589a8

Browse files
committed
Add the HTTPServer class import to the doc (Close csernazs#204)
1 parent 702b89e commit 09589a8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Example
2525
.. code:: python
2626
2727
import requests
28+
from pytest_httpserver import HTTPServer
2829
2930
3031
def test_json_client(httpserver: HTTPServer):

doc/tutorial.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ With pytest-httpserver, a test looks like this:
1414
.. code:: python
1515
1616
import requests
17+
from pytest_httpserver import HTTPServer
1718
1819
1920
def test_json_client(httpserver: HTTPServer):
@@ -457,6 +458,7 @@ soon as possible.
457458
.. code:: python
458459
459460
import requests
461+
from pytest_httpserver import HTTPServer
460462
461463
462464
def test_json_client(httpserver: HTTPServer):
@@ -484,6 +486,7 @@ Adding more call of ``check_assertions()`` will help.
484486
.. code:: python
485487
486488
import requests
489+
from pytest_httpserver import HTTPServer
487490
488491
489492
def test_json_client(httpserver: HTTPServer):

0 commit comments

Comments
 (0)