mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-01 18:18:31 +00:00
Enable static type checking
This commit is contained in:
parent
34bec01c9b
commit
73e42f8101
9 changed files with 36 additions and 7 deletions
|
@ -41,10 +41,17 @@ from radicale.tests.helpers import configuration_to_dict, get_file_path
|
|||
|
||||
|
||||
class DisabledRedirectHandler(request.HTTPRedirectHandler):
|
||||
def http_error_301(self, req, fp, code, msg, headers):
|
||||
raise HTTPError(req.full_url, code, msg, headers, fp)
|
||||
|
||||
def http_error_302(self, req, fp, code, msg, headers):
|
||||
raise HTTPError(req.full_url, code, msg, headers, fp)
|
||||
|
||||
http_error_301 = http_error_303 = http_error_307 = http_error_302
|
||||
def http_error_303(self, req, fp, code, msg, headers):
|
||||
raise HTTPError(req.full_url, code, msg, headers, fp)
|
||||
|
||||
def http_error_307(self, req, fp, code, msg, headers):
|
||||
raise HTTPError(req.full_url, code, msg, headers, fp)
|
||||
|
||||
|
||||
class TestBaseServerRequests(BaseTest):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue