签入版本

This commit is contained in:
2026-09-16 13:30:36 +08:00
parent 09f2c077d5
commit ba008258cd
6 changed files with 40 additions and 13 deletions
+9 -3
View File
@@ -9,10 +9,16 @@ from pathlib import Path
# scripts/ 下无 __init__.py,把 scripts 目录加进 sys.path 以便直接 import
_SCRIPTS_DIR = Path(__file__).resolve().parents[3] / "scripts"
if str(_SCRIPTS_DIR) not in sys.path:
sys.path.insert(0, str(_SCRIPTS_DIR))
import init_db # noqa: E402
def _setup_scripts_path():
if str(_SCRIPTS_DIR) not in sys.path:
sys.path.insert(0, str(_SCRIPTS_DIR))
_setup_scripts_path()
import init_db
def test_oracle_sequence_sql():