Utility Functions
The Python Policy SDK provides several utility functions that help with policy development, testing, and debugging.
get_checks
get_checks()
Retrieves the results of all checks that have been executed in the current process. This is useful for debugging and testing.
Returns: A
Results
object containing information about all executed checks
The Results
object has the following properties:
passed
(bool): Whether all checks passedchecks
(list): A list of all checks that were executed
get_last_check
get_last_check()
Retrieves the most recently executed check in the current process. This is useful for debugging and testing.
Returns: The last
Check
object that was executed orNone
if no checks have been executed
Last updated