Mercurial > p > roundup > code
comparison test/test_cgi.py @ 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 | 31a8a6faa2fa |
| children | db48c0bb4f1c |
comparison
equal
deleted
inserted
replaced
| 8588:511ac64aacea | 8589:4b2e885ecc07 |
|---|---|
| 1249 | 1249 |
| 1250 # clean up from email log | 1250 # clean up from email log |
| 1251 if os.path.exists(SENDMAILDEBUG): | 1251 if os.path.exists(SENDMAILDEBUG): |
| 1252 os.remove(SENDMAILDEBUG) | 1252 os.remove(SENDMAILDEBUG) |
| 1253 | 1253 |
| 1254 # Undo monkey patching | |
| 1255 _HTMLItem.is_edit_ok = orig_HTMLItem_is_edit_ok | |
| 1256 HTMLProperty.is_edit_ok = orig_HTMLProperty_is_edit_ok | |
| 1257 | |
| 1254 def testCsrfProtectionHtml(self): | 1258 def testCsrfProtectionHtml(self): |
| 1255 # need to set SENDMAILDEBUG to prevent | 1259 # need to set SENDMAILDEBUG to prevent |
| 1256 # downstream issue when email is sent on successful | 1260 # downstream issue when email is sent on successful |
| 1257 # issue creation. Also delete the file afterwards | 1261 # issue creation. Also delete the file afterwards |
| 1258 # just to make sure that some other test looking for | 1262 # just to make sure that some other test looking for |
