@pytest.fixture
def mock_okapi_success(monkeypatch, mocker: MockerFixture):

    def mock_post(*args, **kwargs):
        post_response = mocker.stub(name='post_result')
        post_response.status_code = 201
        return post_response
    monkeypatch.setattr(requests, 'post', mock_post)
@pytest.fixture
def mock_okapi_success(monkeypatch, mocker: MockerFixture):

    def mock_post(*args, **kwargs):
        post_response = mocker.stub(name='post_result')
        post_response.status_code = 201
        return post_response
    monkeypatch.setattr(requests, 'post', mock_post)