File size: 503 Bytes
44459bb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
from unittest import mock

import pytest
from folding_studio.client import Response


@pytest.fixture()
def mock_send_request():
    with mock.patch(
        "folding_studio.client.Client.send_request",
        return_value=Response(
            output_signed_url="url", confidence_data={"metric": "value"}
        ),
    ) as m:
        yield m


@pytest.fixture()
def mock_download_results():
    with mock.patch(
        "folding_studio.client.Response.download_results",
    ) as m:
        yield m