-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
28 lines (24 loc) · 821 Bytes
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
CLIENT_ID = ''
CLIENT_SECRET = ''
API_USER = ''
API_USER_PASS = ''
# Password of API_USER for localhost environment
API_USER_LOCAL_PASS = ''
# url of token endpoint used by oauthlib
token_staging = ''
token_local = ''
TIMEOUT = 10.0 # Tells requests library to stop waiting for a response after given number of seconds
TIMEOUT_POST = 20.0 # Timeout for POST requests
WARNING_TIMEOUT = 2.0
WARNING_TIMEOUT_POST = 4.0
WARNING_FAIL = False # Fail test if warning timeouts were exceeded
# HTTPRequestMaker configuration.
# Allowed HTTP status codes.
# autopep8: off
GET_SC = [200, 204, 400]
GET_SC_PARAMS = [200, 204, 400, 404]
POST_SC = [200, 201, 202, 204, 400, 404]
POST_SC_PARAMS = [200, 201, 202, 204, 400, 404, 409]
PUT_SC_PARAMS = [200, 204, 400, 404]
DELETE_SC_PARAMS = [400, 404]
# autopep8: on