semvec/pypi-packages huggingface dataset:
pytest-mitmproxy 1.0.7
pytest plugin for mitmproxy tests
License: MIT
Requires Python: >=3.10

# pytest_mitmproxy
install
```shell
pip install pytest-mitmproxy
```
install cert
```shell
mitm-install
```
usage
```python
import pytest
import requests


def test_baidu(mitmdump_proxy):
    mitmdump_proxy.url_filter = "baidu"

    requests.get("http://www.baidu.com")

    urls = mitmdump_proxy.get_urls()
    assert "baidu" in "".join(urls)


if __name__ == "__main__":
    pytest.main(["-vs"])
```