Skip to content

Commit

Permalink
fix broken test due to population_view setter restrictions (#483)
Browse files Browse the repository at this point in the history
* fix broken test due to population_view setter restrictions

* require vivarium>=3.0.3
  • Loading branch information
rmudambi authored Sep 12, 2024
1 parent e6a49e1 commit 9912a0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
**3.0.8 - 09/12/24**

- Fix broken tests in RiskAttributableDisease due to changes in how to set population_view

**3.0.7 - 09/10/24**

- Properly create the population_view in RateTransition
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
long_description = f.read()

install_requirements = [
"vivarium>=3.0.0",
"vivarium>=3.0.3",
"layered_config_tree>=1.0.1",
"loguru",
"numpy<2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/disease/test_special_disease.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def disease_mock(mocker):
def disease_with_distribution(distribution):
test_disease = RiskAttributableDisease("cause.test_cause", "risk_factor.test_risk")
test_disease.distribution = distribution
test_disease.population_view = mocker.Mock()
test_disease._population_view = mocker.Mock()
test_disease.excess_mortality_rate = mocker.Mock()
return test_disease

Expand Down

0 comments on commit 9912a0b

Please sign in to comment.