Skip to content
Myr

test_exported_members.py

This file

Path

tests/test_exported_members.py

14 lines · 421 bytes · Python

Last changed by

Add exported members test (#1179)Josep Cugatbefore adoption842ccfa

History of this file

Take it

1import httpx2from httpx import __all__ as exported_members345def test_all_imports_are_exported() -> None:6    included_private_members = ["__description__", "__title__", "__version__"]7    assert exported_members == sorted(8        (9            member10            for member in vars(httpx).keys()11            if not member.startswith("_") or member in included_private_members12        ),13        key=str.casefold,14    )