httpx/tests/test_exported_members.py
Florimond Manca 18e0ae45ca
Drop private imports from test_exported_members.py (#2573)
Co-authored-by: Tom Christie <tom@tomchristie.com>
2023-02-09 16:00:27 +00:00

14 lines
372 B
Python

import httpx
def test_all_imports_are_exported() -> None:
included_private_members = ["__description__", "__title__", "__version__"]
assert httpx.__all__ == sorted(
(
member
for member in vars(httpx).keys()
if not member.startswith("_") or member in included_private_members
),
key=str.casefold,
)