diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-17 21:16:55 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-10-17 21:16:55 -0400 |
| commit | 2db675c6bc1df78a6e046c7da9dbd0e41477b5ae (patch) | |
| tree | a533d7ba6d13d2ec3466cab51888a9c24ab31119 /cherrypy | |
| parent | 535605c42c25b62260049285e76825d7ea8f9108 (diff) | |
| download | cherrypy-git-2db675c6bc1df78a6e046c7da9dbd0e41477b5ae.tar.gz | |
Pass arguments from CPWebCase.getPage to WebCase.getPage without replicating signature. Ref #1818.
Diffstat (limited to 'cherrypy')
| -rw-r--r-- | cherrypy/test/helper.py | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/cherrypy/test/helper.py b/cherrypy/test/helper.py index a9109892..c1ca4535 100644 --- a/cherrypy/test/helper.py +++ b/cherrypy/test/helper.py @@ -310,19 +310,12 @@ class CPWebCase(webtest.WebCase): def exit(self): sys.exit() - def getPage(self, url, headers=None, method='GET', body=None, - protocol=None, raise_subcls=None): - """Open the url. Return status, headers, body. - - `raise_subcls` must be a tuple with the exceptions classes - or a single exception class that are not going to be considered - a socket.error regardless that they were are subclass of a - socket.error and therefore not considered for a connection retry. + def getPage(self, url, *args, **kwargs): + """Open the url. """ if self.script_name: url = httputil.urljoin(self.script_name, url) - return webtest.WebCase.getPage(self, url, headers, method, body, - protocol, raise_subcls) + return webtest.WebCase.getPage(self, url, *args, **kwargs) def skip(self, msg='skipped '): pytest.skip(msg) |
