def mock_values(mocker: MockFixture):
    mock_values = mocker.NonCallableMock()
    mocker.patch(
        PATH.format('get_spreadsheets_values'),
        return_value=mock_values,
    )
    return mock_values
def test_get_spreadsheets_values(mocker: MockFixture):
    mock_creds = mocker.create_autospec(Credentials, instance=True)
    mocker.patch(PATH.format('get_credentials'), return_value=mock_creds)
    mock_resource = mocker.NonCallableMock()
    mock_build = mocker.patch(PATH.format('build'), return_value=mock_resource)
    mock_values = mock_resource.spreadsheets().values()
    values = google_sheets.get_spreadsheets_values()
    assert values is mock_values
    mock_build.assert_called_once_with('sheets', 'v4', credentials=mock_creds)