Skip to content

Dry Run Flag #187

@krowvin

Description

@krowvin

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions