• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cle-b / httpdbg / 17354276363

31 Aug 2025 07:48AM UTC coverage: 88.549% (+0.8%) from 87.722%
17354276363

Pull #206

github

cle-b
fix
Pull Request #206: http2

261 of 279 new or added lines in 11 files covered. (93.55%)

2 existing lines in 2 files now uncovered.

2343 of 2646 relevant lines covered (88.55%)

0.89 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

97.56
/httpdbg/hooks/all.py
1
from contextlib import contextmanager
1✔
2
from typing import Generator
1✔
3
from typing import Union
1✔
4

5
from httpdbg.hooks.aiohttp import hook_aiohttp
1✔
6
from httpdbg.hooks.external import watcher_external
1✔
7
from httpdbg.hooks.fastapi import hook_fastapi
1✔
8
from httpdbg.hooks.flask import hook_flask
1✔
9
from httpdbg.hooks.generic import hook_generic
1✔
10
from httpdbg.hooks.h2 import hook_h2
1✔
11
from httpdbg.hooks.http import hook_http
1✔
12
from httpdbg.hooks.httpx import hook_httpx
1✔
13
from httpdbg.hooks.pytest import hook_pytest
1✔
14
from httpdbg.hooks.requests import hook_requests
1✔
15
from httpdbg.hooks.socket import hook_socket
1✔
16
from httpdbg.hooks.starlette import hook_starlette
1✔
17
from httpdbg.hooks.unittest import hook_unittest
1✔
18
from httpdbg.hooks.urllib3 import hook_urllib3
1✔
19
from httpdbg.hooks.uvicorn import hook_uvicorn
1✔
20

21
from httpdbg.records import HTTPRecords
1✔
22

23

24
@contextmanager
1✔
25
def httprecord(
1✔
26
    records: HTTPRecords = None,
27
    initiators: Union[list[str], None] = None,
28
    client: bool = True,
29
    server: bool = False,
30
    ignore: tuple[tuple[str, int], ...] = (),
31
    multiprocess: bool = True,
32
) -> Generator[HTTPRecords, None, None]:
33
    if records is None:
1✔
34
        records = HTTPRecords(client=client, server=server, ignore=ignore)
1✔
35

36
    with hook_flask(records):
1✔
37
        with hook_socket(records):
1✔
38
            with hook_h2(records):
1✔
39
                with hook_fastapi(records):
1✔
40
                    with hook_starlette(records):
1✔
41
                        with hook_uvicorn(records):
1✔
42
                            with hook_http(records):
1✔
43
                                with hook_httpx(records):
1✔
44
                                    with hook_requests(records):
1✔
45
                                        with hook_urllib3(records):
1✔
46
                                            with hook_aiohttp(records):
1✔
47
                                                with hook_pytest(records):
1✔
48
                                                    with hook_unittest(records):
1✔
49
                                                        with hook_generic(
1✔
50
                                                            records, initiators
51
                                                        ):
52
                                                            if multiprocess:
1✔
53
                                                                with watcher_external(
1✔
54
                                                                    records,
55
                                                                    initiators,
56
                                                                    server,
57
                                                                ):
58
                                                                    yield records
1✔
59
                                                            else:
UNCOV
60
                                                                yield records
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc