Skip to content

Commit 407ccfe

Browse files
committed
doc: fix and update documentation
Follow-up renamings, add blocking http server classes to the documentation and fix cross-references.
1 parent ede83e6 commit 407ccfe

File tree

4 files changed

+30
-9
lines changed

4 files changed

+30
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Similar to requests, you can fine-tune what response you want to send:
102102

103103
#### Behave support
104104

105-
Using the `BlockingHttpServer` class, the assertion for a request and the response can be performed in real order.
105+
Using the `BlockingHTTPServer` class, the assertion for a request and the response can be performed in real order.
106106
For more info, see the [test](tests/test_blocking_httpserver.py) and the API documentation.
107107

108108

doc/api.rst

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,29 @@ HTTPServer
1414

1515
.. autoclass:: HTTPServer
1616
:members:
17+
:inherited-members:
18+
19+
RequestHandler
20+
~~~~~~~~~~~~~~
21+
22+
.. autoclass:: RequestHandler
23+
:members:
24+
:inherited-members:
25+
26+
27+
BlockingHTTPServer
28+
~~~~~~~~~~~~~~~~~~
29+
30+
.. autoclass:: BlockingHTTPServer
31+
:members:
32+
:inherited-members:
33+
34+
BlockingRequestHandler
35+
~~~~~~~~~~~~~~~~~~~~~~
36+
37+
.. autoclass:: BlockingRequestHandler
38+
:members:
39+
:inherited-members:
1740

1841
WaitingSettings
1942
~~~~~~~~~~~~~~~
@@ -27,19 +50,12 @@ HeaderValueMatcher
2750
.. autoclass:: HeaderValueMatcher
2851
:members:
2952

30-
RequestHandler
31-
~~~~~~~~~~~~~~
32-
33-
.. autoclass:: RequestHandler
34-
:members:
35-
3653
URIPattern
3754
~~~~~~~~~~
3855

3956
.. autoclass:: URIPattern
4057
:members:
4158

42-
4359
HTTPServerError
4460
~~~~~~~~~~~~~~~
4561

@@ -63,6 +79,9 @@ by the user.
6379
.. autoclass:: RequestMatcher
6480
:members:
6581

82+
.. autoclass:: pytest_httpserver.httpserver.HTTPServerBase
83+
:members:
84+
6685
.. autoclass:: pytest_httpserver.httpserver.Error
6786
:members:
6887

pytest_httpserver/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@
1414
"URI_DEFAULT",
1515
"METHOD_ALL",
1616
"BlockingHTTPServer",
17+
"BlockingRequestHandler",
1718
]
1819

1920
from .blocking_httpserver import BlockingHTTPServer
21+
from .blocking_httpserver import BlockingRequestHandler
2022
from .httpserver import METHOD_ALL
2123
from .httpserver import URI_DEFAULT
2224
from .httpserver import Error

pytest_httpserver/blocking_httpserver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BlockingRequestHandler(RequestHandlerBase):
2424
"""
2525
Provides responding to a request synchronously.
2626
27-
This class should only be instantiated inside the implementation of the :py:class:`BlockingHttpServer`.
27+
This class should only be instantiated inside the implementation of the :py:class:`BlockingHTTPServer`.
2828
"""
2929

3030
def __init__(self):

0 commit comments

Comments
 (0)