File: run_integration_tests.py

package info (click to toggle)
smart-open 7.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: python: 8,054; sh: 90; makefile: 14
file content (17 lines) | stat: -rw-r--r-- 467 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Runs integration tests."""
import os
import subprocess

os.environ['PYTEST_ADDOPTS'] = "--reruns 3 --reruns-delay 1"

subprocess.check_call(
    [
        'pytest',
        'integration-tests/test_207.py',
        'integration-tests/test_http.py',
        'integration-tests/test_ftp.py'
    ]
)

if os.environ.get('AWS_ACCESS_KEY_ID') and os.environ.get('AWS_SECRET_ACCESS_KEY'):
    subprocess.check_call(['pytest', '-v', 'integration-tests/test_s3_ported.py'])