Skip to content

Add testing flag #13

@hdoupe

Description

@hdoupe

I'm considering adding an environment variable to the automated tests that can be used to run a shorter/simpler version of the model. This would work like this:

$ CS_TEST=true py.test cs-config -v

Then models could check for the environment variable in their code:

def run_model(meta_param_dict, adjustment):
    if os.environ.get("CS_TEST") == "true":
        test_mode = True
    # ....

This would still give the model and C/S an opportunity to make sure that all required packages are installed and that outputs are formatted correctly without making model updates expensive in time or compute cost.

@jdebacker what do you think about this? (looking at you OG-USA...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions