fix: 令牌不再走 query(白名单除外)、订阅额度发成功才扣、测试临时目录移出仓库、kpt 外置 json、README 产品优先
This commit is contained in:
+3
-1
@@ -11,6 +11,8 @@ import unittest
|
||||
from pathlib import Path
|
||||
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent))
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent)) # tests/ 自己
|
||||
from _tmpdir import workdir as _workdir # noqa: E402
|
||||
|
||||
from backend import content, db, services # noqa: E402
|
||||
|
||||
@@ -45,7 +47,7 @@ class BankKpTest(unittest.TestCase):
|
||||
class KpThroughDbTest(unittest.TestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
cls.tmp = Path(__file__).resolve().parent / "_tmp"
|
||||
cls.tmp = _workdir("shared")
|
||||
cls.tmp.mkdir(exist_ok=True)
|
||||
cls.db_path = cls.tmp / "kp.db"
|
||||
cls.conn = db.connect(str(cls.db_path))
|
||||
|
||||
Reference in New Issue
Block a user