The aim is to test each of oemof-B3's rules. So far we collected the rules we had to test in this excel table. Now we want implement tests for this.
I already created a first draft, where I started by testing the rule "create_empty_scalars".
The basic idea is to check if the output, which would be created by the rule, already exists. If so it is renamed first. Then the rule is run and it is checked if there is an output from snakemake and if the path exists. If so, the created output is deleted and the original file is named back. There is a try and exception around this, to make sure, that original data is named back no matter what error there might occure from the renaming on.
With this PR tests of the pipeline are added.
The aim is to test each of oemof-B3's rules. So far we collected the rules we had to test in this excel table. Now we want implement tests for this.
I already created a first draft, where I started by testing the rule "create_empty_scalars". The basic idea is to check if the output, which would be created by the rule, already exists. If so it is renamed first. Then the rule is run and it is checked if there is an output from snakemake and if the path exists. If so, the created output is deleted and the original file is named back. There is a try and exception around this, to make sure, that original data is named back no matter what error there might occure from the renaming on.