"""Integration test configuration.""" import logging import os logging.basicConfig( level=logging.INFO, format='%(asctime)s.%(msecs)03d - %(levelname)s [%(filename)s:%(lineno)s %(funcName)10s] %(message)s', datefmt='%H:%M:%S', ) OWS_ASSET_TRANSCODER_BASE_URL = os.environ.get( 'OWS_ASSET_TRANSCODER_BASE_URL', 'https://dev-ows-asset-transcoder.dev.theorchard.io' ) ORCHARD_USER_ID_HEADER = os.environ.get('ORCHARD_USER_ID_HEADER', 'alw:1') # polling status endpoint for MAX_TRIES times sleeping WAIT_BEFORE_TRY in each. MAX_TRIES = 20 WAIT_BEFORE_TRY = 3 def default_headers(): """Get common headers.""" return {'Orchard-User-Id': ORCHARD_USER_ID_HEADER}