The gen_dbt_cwl Module

Command line utility to generate a test carcass for a CWL pipeline.

Usage:

python -m dorieh.platform.dbt.gen_dbt_cwl <path/to/cwl/workflow> [<path/to/generated/test>]

If the second argument is omitted, the test is generated in the same directory as original workflow and given a name test_<workflow_name>

Test takes the same parameters as the original workflow plus a list of files containing test cases generated by dorieh.platform.dbt.create_test.py tool.

class CWLTestGenerator(path_to_pipeline: str, path_to_test: str)[source]
generate()[source]
write_test_inputs()[source]
write_steps()[source]
write_execute_step(test)[source]
write_in(test)[source]
write_out(test)[source]
write_verify_step(test)[source]
write_outputs()[source]