summaryrefslogtreecommitdiff
path: root/testing/tests/perf/test_sync.py
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-08-22 18:00:52 -0300
committerVictor Shyba <victor.shyba@gmail.com>2016-08-22 18:49:18 -0300
commit4f5ecb4c719a3a842d852fbaab549d2881d6528f (patch)
treedcf6698e8556f09de0f54ec925ce760a58693a70 /testing/tests/perf/test_sync.py
parentcf91133809bab11ee43f20178944f91b1466bfd5 (diff)
[test] make txbench ignore kwargs for readability
They arent used so far and using empty dicts to make them work is ugly. Removing it leaves the return function on setup code clean and readable.
Diffstat (limited to 'testing/tests/perf/test_sync.py')
-rw-r--r--testing/tests/perf/test_sync.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/testing/tests/perf/test_sync.py b/testing/tests/perf/test_sync.py
index 668ceae7..0be9d12f 100644
--- a/testing/tests/perf/test_sync.py
+++ b/testing/tests/perf/test_sync.py
@@ -45,8 +45,7 @@ def create_download(downloads, size):
# ensures we are dealing with properly encrypted docs
def setup():
- clean_client = soledad_client()
- return (clean_client,), {}
+ return soledad_client()
def sync(clean_client):
return clean_client.sync()
@@ -63,8 +62,7 @@ test_download_1000_10k = create_download(1000, 10*1000)
@pytest.mark.benchmark(group="test_nothing_to_sync")
def test_nothing_to_sync(soledad_client, txbenchmark_with_setup):
def setup():
- clean_client = soledad_client()
- return (clean_client,), {}
+ return soledad_client()
def sync(clean_client):
return clean_client.sync()