Skip to content

Commit

Permalink
Add test for default datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilwoodruff committed Aug 9, 2021
1 parent 7435ed3 commit 982ce07
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions tests/setup/test_datasets.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import yaml
from openfisca_uk import REPO


def test_default_dataset_is_synth_frs():
with open(REPO / "tools" / "datasets.yml") as f:
data = yaml.safe_load(f)
assert data["default"] == "synth_frs"


def test_default_dataset_is_usable():
from openfisca_uk import Microsimulation

sim = Microsimulation()
sim.calc("in_poverty_bhc", map_to="person")

0 comments on commit 982ce07

Please sign in to comment.