-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Add the ability to provide a dry_run=True to the init of cwms-python that prevents the calls from actually triggering.
The idea would be something like cwms-cli, or other scripts, can trigger everything in the script to test logic but not actually trigger the HTTP calls.
Possible read the dry_run flag in GET/POST/DELETE/etc methods and do a simple return/console log of "Dry Run Enabled: Skipping DELETE"
While you can implement this in each script and set the arg there. I think it would be easier to allow an env var to be set and also provide another argument to the init(..., dry_run) to account for this!
Metadata
Metadata
Assignees
Labels
No labels