pytest-socket
pytest-socket copied to clipboard
Pytest Plugin to disable socket calls during tests
This feature allows `--allow-hosts` to support CIDR blocks. This is useful inside Docker since different services can get any range of IPs (typically on 172.17.0.0/16 or 172.20.0.0/16) and pytest-socket doesn't...
Hey, thanks for the nice project. ### Scenario I'm attempting to solve: - We have a service in our project we must connect to from a docker-composed application. - The...
Fixes #70 socket_allow_hosts now allows any AF_UNIX socket connection if --allow-unix-socket is specified on the CLI or if allow_unix_socket is used as a pytest mark. It also works for AF_UNIX...
When socket is disabled, disable these address lookups as well. Addresses #43
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/checkout](https://togithub.com/actions/checkout) | action | major | `v2` -> `v3` | ---...
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. Release notes Sourced from actions/checkout's releases. v3.0.0 Updated to the node16 runtime by default This requires a minimum Actions Runner version of v2.285.0 to...
Updates the requirements on [starlette](https://github.com/encode/starlette) to permit the latest version. Release notes Sourced from starlette's releases. Version 0.21.0 This release replaces the underlying HTTP client used on the TestClient (requests...
updates: - [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](https://github.com/asottile/pyupgrade/compare/v2.38.0...v2.38.2)
[](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-python](https://togithub.com/actions/setup-python) | action | major | `v2` -> `v4` | ---...
[](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [starlette](https://togithub.com/encode/starlette) | `^0.20.0` -> `^0.21.0` | [](https://docs.renovatebot.com/merge-confidence/)...