diff options
author | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-22 19:14:53 -0600 |
---|---|---|
committer | Jordan Cook <jordan.cook@pioneer.com> | 2022-02-22 19:18:07 -0600 |
commit | fe82501662a1a502eb02ba132965596bceebed43 (patch) | |
tree | d0c55ca2a0752f455a2ce8ce769b21f8fabbba3d /noxfile.py | |
parent | 0bd1446c8c733a69c4accaf78f00f77c68a1f256 (diff) | |
download | requests-cache-fe82501662a1a502eb02ba132965596bceebed43.tar.gz |
Increase stress test multiplier to 10 for pre-deployment tests
Diffstat (limited to 'noxfile.py')
-rw-r--r-- | noxfile.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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) |