Skip to content

Commit

Permalink
添加单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
feiazifeiazi committed Sep 19, 2024
1 parent a1a3cd1 commit 5db6b33
Show file tree
Hide file tree
Showing 6 changed files with 458 additions and 342 deletions.
1 change: 1 addition & 0 deletions sql/engines/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""engine base库, 包含一个``EngineBase`` class和一个get_engine函数"""

import importlib
import re
from sql.engines.models import ResultSet, ReviewSet
from sql.models import Instance
from sql.utils.ssh_tunnel import SSHConnection
Expand Down
1 change: 0 additions & 1 deletion sql/engines/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

from sql.engines.goinception import GoInceptionEngine
from sql.utils.sql_utils import (
filter_db_list,
get_syntax_type,
remove_comments,
)
Expand Down
2 changes: 2 additions & 0 deletions sql/utils/sql_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,5 @@ def filter_db_list(db_list, db_name_regex: str, is_match_regex: bool, key="value
if (is_match_regex and is_match) or (not is_match_regex and not is_match):
filtered_list.append(db)
return filtered_list


Loading

0 comments on commit 5db6b33

Please sign in to comment.