openfisca / openfisca-core

OpenFisca core engine. See other repositories for countries-specific code & data.
https://openfisca.org
GNU Affero General Public License v3.0
170 stars 75 forks source link

Add references to test cases #1076

Open nikhilwoodruff opened 3 years ago

nikhilwoodruff commented 3 years ago

Hi there!

I really enjoy OpenFisca, but I recently encountered an issue.

Here is what I did:

Add a reference attribute to a test case, to explain where the expected values came from.

Here is what I expected to happen:

The test to be unaffected.

Here is what actually happened:

A ValueError was raised when executing the test script: ValueError: Unexpected keys {'reference'} in test

Context

I identify more as a:

Thanks - happy to file a PR if this is desirable.

benjello commented 2 years ago

You can use the description to add some info about the test case ...

MaxGhenis commented 2 years ago

One example of this is https://github.com/PolicyEngine/openfisca-us/pull/387, where we're creating test cases for a benefit program from this third party calculator.