tests: Drop unused arguments

This commit is contained in:
Sebastian Pipping 2021-10-17 17:16:20 +02:00 committed by Sebastian Lohff
父節點 8f9ba0e387
當前提交 8b16b7626c
共有 1 個文件被更改,包括 2 次插入2 次删除

查看文件

@ -91,7 +91,7 @@ def datadir(tmp_path):
return _datadir
def make_request(path='/', host='localhost', port=SERVEFILE_DEFAULT_PORT, method='get', protocol='http', timeout=5,
def make_request(path='/', host='localhost', port=SERVEFILE_DEFAULT_PORT, method='get', protocol='http',
encoding='utf-8', **kwargs):
url = '{}://{}:{}{}'.format(protocol, host, port, path)
print('Calling {} on {} with {}'.format(method, url, kwargs))
@ -103,7 +103,7 @@ def make_request(path='/', host='localhost', port=SERVEFILE_DEFAULT_PORT, method
return r
def check_download(expected_data=None, path='/', fname=None, status_code=200, **kwargs):
def check_download(expected_data=None, path='/', fname=None, **kwargs):
if fname is None:
fname = os.path.basename(path)
r = make_request(path, **kwargs)