Skip to content

Commit

Permalink
Updated test
Browse files Browse the repository at this point in the history
  • Loading branch information
arindamsaha1507 committed Dec 1, 2023
1 parent e685dd1 commit 3271919
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_disease.py
Expand Up @@ -31,7 +31,7 @@ def test_disease_initialization(disease: Disease):
repr(disease) == "Disease(infection_rate=0.05, "
"incubation_period=5.0, mild_recovery_period=10.0, "
"recovery_period=15.0, mortality_period=20.0, "
"period_to_hospitalisation=25.0, immunity_duration=30.0)"
"period_to_hospitalisation=25.0, immunity_duration=30.0, immunity_fraction=0.5)"
)


Expand Down
2 changes: 2 additions & 0 deletions tests/test_household.py
Expand Up @@ -106,6 +106,8 @@ def test_evolve(mock_probability, sample_house, sample_ages):

household = Household(sample_house, sample_ages, size=3)
household.agents[0].status = "infectious"
household.agents[1].status = "susceptible"
household.agents[2].status = "susceptible"
household.evolve(eco, disease)

assert mock_probability.call_count == 2
Expand Down

0 comments on commit 3271919

Please sign in to comment.