fix: 清掉无用接口和样式,并收紧登录与工号边界
This commit is contained in:
@@ -579,14 +579,10 @@ def test_user_can_set_proxy_with_or_without_password() -> None:
|
||||
account = db.get(Account, "6650000146")
|
||||
assert account is not None
|
||||
assert decrypt_secret(account.proxy_password_cipher) == "p@ss"
|
||||
cleared = client.delete("/api/settings/proxy")
|
||||
cleared = client.put("/api/settings/proxy", json={"scheme": "off"})
|
||||
assert cleared.status_code == 200
|
||||
assert cleared.json()["enabled"] is False
|
||||
assert cleared.json()["scheme"] == "off"
|
||||
off = client.put("/api/settings/proxy", json={"scheme": "off"})
|
||||
assert off.status_code == 200
|
||||
assert off.json()["enabled"] is False
|
||||
assert off.json()["scheme"] == "off"
|
||||
|
||||
|
||||
def test_user_can_set_course_workers() -> None:
|
||||
|
||||
Reference in New Issue
Block a user