Debian Codegraph @

tests/constants.py

raw symbols SCIP
1 """Constants for test execution."""
2
3 from unittest.mock import Mock
4
5 from requests import Response
6
7 BASE_API_URL = "https://api.rach.io/1/public"
8 VALVE_API_URL = "https://cloud-rest.rach.io"
9
10 AUTHTOKEN = "1c1d9f3d-39c9-42b1-abc0-066f5a05cdef"
11
12 RESPONSE200 = Mock(spec=Response)
13 RESPONSE200.status_code = 200
14 RESPONSE200.headers = {"content-type": "application/json"}
15 RESPONSE200.json.return_value = {}
16
17 RESPONSE204 = Mock(spec=Response)
18 RESPONSE204.headers = {}
19 RESPONSE204.status_code = 204