回收站,软删除(三天自动清空),以及默认链接三十分钟失效
This commit is contained in:
@@ -57,6 +57,10 @@ def _isolate_db(tmp_path, monkeypatch):
|
||||
from app.core import session as session_module
|
||||
session_module._store.clear()
|
||||
|
||||
# 重置存储服务单例(否则上一个测试的 tmp_path 被复用)
|
||||
import app.storage.local_storage as ls
|
||||
monkeypatch.setattr(ls, "_instance", None)
|
||||
|
||||
yield
|
||||
|
||||
engine.dispose()
|
||||
Reference in New Issue
Block a user