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

cle-b / httpdbg / 16525252525

25 Jul 2025 03:07PM UTC coverage: 88.406% (-0.2%) from 88.575%
16525252525

push

github

web-flow
allow to disable external watcher (multiprocess) (#196)

17 of 27 new or added lines in 3 files covered. (62.96%)

2 existing lines in 2 files now uncovered.

2074 of 2346 relevant lines covered (88.41%)

0.88 hits per line

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

97.56
/httpdbg/hooks/all.py
1
# -*- coding: utf-8 -*-
2
from contextlib import contextmanager
1✔
3
from typing import Generator
1✔
4
from typing import List
1✔
5
from typing import Tuple
1✔
6
from typing import Union
1✔
7

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

23
from httpdbg.records import HTTPRecords
1✔
24

25

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

38
    with hook_flask(records):
1✔
39
        with hook_socket(records):
1✔
40
            with hook_fastapi(records):
1✔
41
                with hook_starlette(records):
1✔
42
                    with hook_uvicorn(records):
1✔
43
                        with hook_http(records):
1✔
44
                            with hook_httpx(records):
1✔
45
                                with hook_requests(records):
1✔
46
                                    with hook_urllib3(records):
1✔
47
                                        with hook_aiohttp(records):
1✔
48
                                            with hook_pytest(records):
1✔
49
                                                with hook_unittest(records):
1✔
50
                                                    with hook_generic(
1✔
51
                                                        records, initiators
52
                                                    ):
53
                                                        if multiprocess:
1✔
54
                                                            with watcher_external(
1✔
55
                                                                records,
56
                                                                initiators,
57
                                                                server,
58
                                                            ):
59
                                                                yield records
1✔
60
                                                        else:
UNCOV
61
                                                            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