rl-institut / oemof-B3

An open-source energy system model for Brandenburg/Berlin.
https://oemof-b3.readthedocs.io/
GNU Affero General Public License v3.0
9 stars 5 forks source link

Features/add tests #357

Open MaGering opened 9 months ago

MaGering commented 9 months ago

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.

MaGering commented 3 months ago

@Stefanie08, here are some open TODOs: