From 8b16b7626cc108f1560ec8c4678ade6e4f157f22 Mon Sep 17 00:00:00 2001 From: Sebastian Pipping Date: Sun, 17 Oct 2021 17:16:20 +0200 Subject: [PATCH] tests: Drop unused arguments --- tests/test_servefile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_servefile.py b/tests/test_servefile.py index 703de38..1ffa8c4 100644 --- a/tests/test_servefile.py +++ b/tests/test_servefile.py @@ -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)