移除部署域名和初始化账号默认值

This commit is contained in:
xuans committed 2026-10-01 13:52:13 +08:00
1 parent c44f639328
commit 843ca39ae7
8 files changed
+59 -17

No files matched your search

+2 -1
View File
@@ -13,7 +13,8 @@ from unittest.mock import patch
BASE = Path(__file__).resolve().parent
SCRIPTS = BASE if (BASE / 'renew_certificate.py').exists() else BASE.parents[1] / 'deploy/nginx'
sys.path.insert(0, str(SCRIPTS))
import renew_certificate as renew
with patch.dict(os.environ, {'SMAIL_MAIL_DOMAIN': 'cdis.cn', 'SMAIL_WEB_DOMAIN': 'web.cdis.cn'}):
import renew_certificate as renew
class WebrootTests(unittest.TestCase):