diff --git a/tests/unit/test_templates_editor_api.py b/tests/unit/test_templates_editor_api.py index 783b2a45d..8db3b8e57 100755 --- a/tests/unit/test_templates_editor_api.py +++ b/tests/unit/test_templates_editor_api.py @@ -502,5 +502,5 @@ class TestVersioningEndpoints: c, mock_tpl_svc, _ = client mock_tpl_svc.rollback_to_version.side_effect = ValueError("版本不存在") resp = c.post(BASE + "/rollback", json={"version": 99}) - assert resp.status_code == 400 + assert resp.status_code == 404 assert "不存在" in resp.json()["detail"]