[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [bridgedb/master] Fix CaptchaProtectedResourceTests.test_render_GET_noCaptcha unittest.
commit 7753289270a992dd51326164803ff4c7076e4da8
Author: Isis Lovecruft <isis@xxxxxxxxxxxxxx>
Date: Tue Mar 18 04:39:38 2014 +0000
Fix CaptchaProtectedResourceTests.test_render_GET_noCaptcha unittest.
We shouldn't return ``(None, None)`` in a stub method when all the other
methods and child classes expect ``(str, str)``.
---
lib/bridgedb/HTTPServer.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/HTTPServer.py b/lib/bridgedb/HTTPServer.py
index 96ee029..a67d5ae 100644
--- a/lib/bridgedb/HTTPServer.py
+++ b/lib/bridgedb/HTTPServer.py
@@ -142,7 +142,7 @@ class CaptchaProtectedResource(twisted.web.resource.Resource):
string. If unable to retrieve a CAPTCHA, returns
``(None, None)``.
"""
- return (None, None)
+ return ('', '')
def extractClientSolution(self, request):
"""Extract the client's CAPTCHA solution from a POST request.
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits