This repository has been archived on 2023-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
python-blog/src/attachments/tests/conftest.py
2021-12-31 12:08:35 +01:00

20 lines
327 B
Python

from typing import Any, Protocol
import pytest
class Request(Protocol):
body: Any
def replace_post_body(request: Request) -> Request:
request.body = None
return request
@pytest.fixture(scope="module")
def vcr_config() -> dict[str, Any]:
return {
"before_record_request": replace_post_body,
}