mirror of
https://github.com/langgenius/dify.git
synced 2026-03-19 05:37:42 +08:00
gemini 3 pro dify workflow-engine test
This commit is contained in:
37
dify-workflow-engine/sqlalchemy/__init__.py
Normal file
37
dify-workflow-engine/sqlalchemy/__init__.py
Normal file
@ -0,0 +1,37 @@
|
||||
class MockColumn:
|
||||
def __eq__(self, other):
|
||||
return True
|
||||
def __ne__(self, other):
|
||||
return True
|
||||
def __lt__(self, other):
|
||||
return True
|
||||
def __gt__(self, other):
|
||||
return True
|
||||
def __le__(self, other):
|
||||
return True
|
||||
def __ge__(self, other):
|
||||
return True
|
||||
|
||||
def select(*args, **kwargs):
|
||||
return "mock_select"
|
||||
|
||||
def func(*args, **kwargs):
|
||||
return "mock_func"
|
||||
|
||||
def and_(*args, **kwargs):
|
||||
return "mock_and"
|
||||
|
||||
def or_(*args, **kwargs):
|
||||
return "mock_or"
|
||||
|
||||
def text(*args, **kwargs):
|
||||
return "mock_text"
|
||||
|
||||
def cast(*args, **kwargs):
|
||||
return MockColumn()
|
||||
|
||||
class Float:
|
||||
pass
|
||||
|
||||
class Engine:
|
||||
pass
|
||||
20
dify-workflow-engine/sqlalchemy/orm/__init__.py
Normal file
20
dify-workflow-engine/sqlalchemy/orm/__init__.py
Normal file
@ -0,0 +1,20 @@
|
||||
class Session:
|
||||
def __init__(self, *args, **kwargs):
|
||||
pass
|
||||
def close(self):
|
||||
pass
|
||||
def commit(self):
|
||||
pass
|
||||
def rollback(self):
|
||||
pass
|
||||
def add(self, obj):
|
||||
pass
|
||||
def query(self, *args, **kwargs):
|
||||
return self
|
||||
def filter(self, *args, **kwargs):
|
||||
return self
|
||||
def all(self):
|
||||
return []
|
||||
|
||||
def sessionmaker(*args, **kwargs):
|
||||
return Session
|
||||
Reference in New Issue
Block a user