Skip to content

Synthetic tokens

Part of Offline testing in the Python API reference.

Related guidance: getting-started/mock-setup.

Runnable examples: preflight.py.

from picogrid_ecn_client.testing import FULL_ACCESS_TOKEN
from picogrid_ecn_client.testing import READ_ONLY_TOKEN
from picogrid_ecn_client.testing import NO_ACCESS_TOKEN

Synthetic token with every mock-only ACL label for offline tests.

Synthetic token with every mock-only ACL label for offline tests.

FULL_ACCESS_TOKEN: str

Source · testing/mock_ecn.py

Synthetic token with mock-only entity and location read labels.

READ_ONLY_TOKEN: str

Source · testing/mock_ecn.py

Synthetic token with no mock-only ACL labels.

NO_ACCESS_TOKEN: str

Source · testing/mock_ecn.py

Version 0.2.0 · branch main