Coverage for api/examples/environment.py: 100%

5 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 06:14 +0000

1import os 

2 

3 

4TOKEN = os.getenv("REQUEST_TOKEN", "<Openverse API token>") 

5DOMAIN = os.getenv("CANONICAL_DOMAIN") 

6_proto = "http" if "localhost" in DOMAIN else "https" 

7ORIGIN = f"{_proto}://{DOMAIN}"