iza-institute-of-labor-economics / gettsim

The GErman Taxes and Transfers SIMulator
https://gettsim.readthedocs.io/
GNU Affero General Public License v3.0
54 stars 32 forks source link

ENH: Assert in YAML test data that error is raised #669

Open lars-reimann opened 10 months ago

lars-reimann commented 10 months ago

Is your feature request related to a problem?

Sometimes, we want to assert that specific errors are raised for inputs.

Describe the solution you would like to see

The data-driven test system should be able to handle an outputs > error field and then assert that an error with the given message is raised.

Interface breaking implications

None, since it's internal only.

Describe alternatives you've considered

/

Additional context

Needed for some skipped tests that were added in #601.