Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### 43.4.1 [#1341](https://github.com/openfisca/openfisca-core/pull/1341)

#### Technical changes

- Add a check for creating a simulation when building a test

## 43.4.0 [#1334](https://github.com/openfisca/openfisca-core/pull/1334)

#### New features
Expand Down
6 changes: 5 additions & 1 deletion openfisca_core/tools/test_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ def runtest(self) -> None:
try:
builder.set_default_period(period)
self.simulation = builder.build_from_dict(self.tax_benefit_system, input)
except (VariableNotFound, SituationParsingError):
assert (
self.simulation is not None
), "Simulation should be properly initialized, Check your test input"

except (VariableNotFound, SituationParsingError, AssertionError):
raise
except Exception as e:
error_message = os.linesep.join(
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@

setup(
name="OpenFisca-Core",
version="43.4.0",
version="43.4.1",
author="OpenFisca Team",
author_email="[email protected]",
classifiers=[
Expand Down
Loading