Mercurial > p > roundup > code
changeset 8589:4b2e885ecc07
test: undo monkey patch at end of test
Dummy permisions check was leaking and breaking tests in
test_liveserver.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Mon, 20 Apr 2026 21:27:52 -0400 |
| parents | 511ac64aacea |
| children | db48c0bb4f1c |
| files | test/test_cgi.py |
| diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_cgi.py Mon Apr 20 15:32:34 2026 -0400 +++ b/test/test_cgi.py Mon Apr 20 21:27:52 2026 -0400 @@ -1251,6 +1251,10 @@ if os.path.exists(SENDMAILDEBUG): os.remove(SENDMAILDEBUG) + # Undo monkey patching + _HTMLItem.is_edit_ok = orig_HTMLItem_is_edit_ok + HTMLProperty.is_edit_ok = orig_HTMLProperty_is_edit_ok + def testCsrfProtectionHtml(self): # need to set SENDMAILDEBUG to prevent # downstream issue when email is sent on successful
