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)
def test__extract_types(inp, expect): from google.cloud.bigquery.dbapi.cursor import _extract_types as et assert et(inp) == expect