summaryrefslogtreecommitdiff
path: root/noxfile.py
diff options
context:
space:
mode:
authorJordan Cook <jordan.cook@pioneer.com>2022-02-22 19:14:53 -0600
committerJordan Cook <jordan.cook@pioneer.com>2022-02-22 19:18:07 -0600
commitfe82501662a1a502eb02ba132965596bceebed43 (patch)
treed0c55ca2a0752f455a2ce8ce769b21f8fabbba3d /noxfile.py
parent0bd1446c8c733a69c4accaf78f00f77c68a1f256 (diff)
downloadrequests-cache-fe82501662a1a502eb02ba132965596bceebed43.tar.gz
Increase stress test multiplier to 10 for pre-deployment tests
Diffstat (limited to 'noxfile.py')
-rw-r--r--noxfile.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/noxfile.py b/noxfile.py
index 3b72f50..ddc94e0 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -20,6 +20,7 @@ CLEAN_DIRS = ['dist', 'build', join('docs', '_build'), join('docs', 'modules')]
UNIT_TESTS = join('tests', 'unit')
INTEGRATION_TESTS = join('tests', 'integration')
+STRESS_TEST_MULTIPLIER = 10
COVERAGE_ARGS = (
'--cov --cov-report=term --cov-report=html' # Generate HTML + stdout coverage report
)
@@ -56,9 +57,11 @@ def coverage(session):
@session(python=False, name='stress')
def stress_test(session):
"""Run concurrency tests with a higher stress test multiplier"""
- multiplier = session.posargs[0] if session.posargs else 5
cmd = f'pytest {INTEGRATION_TESTS} -rs -k concurrency'
- session.run(*cmd.split(' '), env={'STRESS_TEST_MULTIPLIER': str(multiplier)})
+ session.run(
+ *cmd.split(' '),
+ env={'STRESS_TEST_MULTIPLIER': str(STRESS_TEST_MULTIPLIER)},
+ )
@session(python=False)