@pytest.fixture
def strava_dataframe(dirpath, mocker):
    activity_json = os.path.join(dirpath, 'strava', 'activity.json')
    streams_json = os.path.join(dirpath, 'strava', 'streams.json')
    mocker.patch.object(ApiV3, 'get', return_value=MockResponse(activity_json).json())
    mocker.patch.object(Client, 'get_activity_streams', return_value=mock_get_activity_streams(streams_json))
    activity = read_strava(activity_id=4437021783, access_token=None, refresh_token=None, to_df=True)
    return activity
@pytest.fixture
def strava_dataframe(dirpath, mocker):
    activity_json = os.path.join(dirpath, 'strava', 'activity.json')
    streams_json = os.path.join(dirpath, 'strava', 'streams.json')
    mocker.patch.object(ApiV3, 'get', return_value=MockResponse(activity_json).json())
    mocker.patch.object(Client, 'get_activity_streams', return_value=mock_get_activity_streams(streams_json))
    activity = read_strava(activity_id=4437021783, access_token=None, refresh_token=None, to_df=True)
    return activity