예제 #1
0
def test__extract_types_fail(match, inp):
    from google.cloud.bigquery.dbapi.cursor import _extract_types as et
    from google.cloud.bigquery.dbapi import exceptions

    with pytest.raises(exceptions.ProgrammingError, match=match):
        et(inp)
예제 #2
0
def test__extract_types(inp, expect):
    from google.cloud.bigquery.dbapi.cursor import _extract_types as et

    assert et(inp) == expect