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/attachments/tests/conftest.py

14 lines
214 B
Python
Raw Normal View History

2020-12-03 22:30:11 +01:00
import pytest
def replace_post_body(request):
request.body = None
return request
@pytest.fixture(scope="module")
def vcr_config():
return {
"before_record_request": replace_post_body,
}