Skip to content

Commit

Permalink
Add test for plugin remove
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Peng committed Sep 18, 2020
1 parent ab3e651 commit 1102ae4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions docs/_docs/changelog.md
Expand Up @@ -3,6 +3,13 @@ title: Change Log
permalink: /docs/changelog/
---

## Version 0.3.3

* Fix negative recovery time for `leadtime == any`.
* Improve plugin `insert` for adding individuals to population.
* Add plugin `community_spread`
* Add `contrib/report2csv.py`.
* Fix quarantine with leadtime.

## Version 0.3.0

Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Expand Up @@ -6,7 +6,7 @@
<div class="container">
<h1>COVID-19 Outbreak Simulator</h1>
<p>Evaluate the effectiveness of preventative and interventive measures
against the spread of SARS-CoV-2 virus.
against the spread of the SARS-CoV-2 virus.
</p>
<p><a class="btn btn-primary btn-lg" href="{{ "/docs/home/" | relative_url }}" role="button">Learn more</a></p>
</div>
Expand Down Expand Up @@ -41,7 +41,7 @@ <h3 class="text-center">Powerful Simulator</h3>
<div class="col-sm-4">
<h1 class="text-center"><i class="fa fa-bar-chart" aria-hidden="true"></i></h1>
<h3 class="text-center">Application-oriented Notebooks</h3>
<p>Applications in executable <a href="https://jupyter.org/">Jupyter Notebook format</a> that include narratives, simulation
<p><a href="/covid19-outbreak-simulator/applications/TestFrequency/">Applications</a> in executable <a href="https://jupyter.org/">Jupyter Notebook format</a> that include narratives, simulation
steps, and analysis of outputs, providing a higher-level interface for particular
simulation scenarios.</p>
</div>
Expand Down
11 changes: 11 additions & 0 deletions tests/test_plugins.py
Expand Up @@ -139,6 +139,17 @@ def test_plugin_insert():
])


def test_plugin_remove():
main([
'--jobs', '1', '--repeats', '100', '--stop-if', 't>10', '--plugin',
'remove', '2', '--at', '1'
])
main([
'--jobs', '1', '--repeats', '100', '--popsize', 'A=100', 'B=100', '--stop-if', 't>10', '--plugin',
'remove', 'A=2', '--interval', '1'
])


def test_plugin_insert_hetero_pop():
main([
'--jobs', '1', '--repeats', '100', '--stop-if', 't>10', '--popsize',
Expand Down

0 comments on commit 1102ae4

Please sign in to comment.