Mobilizon-Reshare-condividi.../tests/mobilizon/conftest.py

14 lines
260 B
Python
Raw Permalink Normal View History

import pytest
import responses
@responses.activate
@pytest.fixture
def mock_mobilizon_failure_answer(mobilizon_url):
with responses.RequestsMock() as rsps:
rsps.add(
responses.POST, mobilizon_url, status=500,
)
yield