def mocked_execute(*args, **kwargs): if len(args) >= 1 and args[0].startswith('COPY INTO'): location = args[0].split(' ')[2] if quote_identifiers: assert location == '"teble.table"' else: assert location == 'teble.table' cur = SnowflakeCursor(cnx) cur._result = iter([]) return cur
def mocked_execute(*args, **kwargs): if len(args) >= 1 and args[0].startswith("COPY INTO"): location = args[0].split(" ")[2] if quote_identifiers: assert location == '"schema"."table"' else: assert location == "schema.table" cur = SnowflakeCursor(cnx) cur._result = iter([]) return cur