summaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2021-04-01 10:23:29 -0500
committerJordan Cook <jordan.cook@pioneer.com>2021-04-01 10:52:19 -0500
commit4196c138d00f92ef3f55da8bbb4818c180d5f7d7 (patch)
tree8f7b45d23054c9473886f745aa0180d1713736c5 /tests/unit
parentd80901a689876fceb88330d6698432eba33592b0 (diff)
downloadrequests-cache-4196c138d00f92ef3f55da8bbb4818c180d5f7d7.tar.gz
Use pytest-xdist to parallelize stress tests
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/test_thread_safety.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/unit/test_thread_safety.py b/tests/unit/test_thread_safety.py
index 9759333..55f256c 100644
--- a/tests/unit/test_thread_safety.py
+++ b/tests/unit/test_thread_safety.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
import pytest
from threading import Thread
@@ -9,7 +8,7 @@ N_ITERATIONS = 20
@pytest.mark.parametrize('iteration', range(N_ITERATIONS))
-@pytest.mark.parametrize('backend', ['sqlite', 'mongodb', 'redis', 'dynamodb'])
+@pytest.mark.parametrize('backend', ['sqlite', 'mongodb', 'gridfs', 'redis', 'dynamodb'])
def test_caching_with_threads(backend, iteration, mock_session):
"""Stress test for multi-threaded caching"""