Coverage for notion_client / constants.py: 100%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-02 18:32 +0000

1DEFAULT_BASE_URL = "https://api.notion.com" 

2"""Default base URL for the Notion API.""" 

3 

4DEFAULT_TIMEOUT_MS = 60_000 

5"""Default request timeout in milliseconds (60 seconds).""" 

6 

7DEFAULT_MAX_RETRIES = 2 

8"""Default maximum number of retry attempts for failed requests.""" 

9 

10DEFAULT_INITIAL_RETRY_DELAY_MS = 1_000 

11"""Default initial delay between retries in milliseconds (1 second). 

12Used as the base for exponential back-off when the retry-after header is absent.""" 

13 

14DEFAULT_MAX_RETRY_DELAY_MS = 60_000 

15"""Default maximum delay between retries in milliseconds (60 seconds). 

16Caps both retry-after and exponential back-off delays.""" 

17 

18MIN_VIEW_COLUMN_WIDTH = 32 

19"""The minimum width of a view column in pixels. Use this with the views API to make 

20a property column that appears minimal/collapsed in the Notion app UI (e.g. a 

21checkbox or status-as-checkbox column)."""