-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
import os | ||
import shutil | ||
from pathlib import Path | ||
|
||
from covid19_drdfm.dfm import run_model | ||
from covid19_drdfm.processing import get_df | ||
|
||
|
||
# TODO: output should go in a directory instead of dumping shit everywhere | ||
def test_run_model(): | ||
df = get_df() | ||
run_model(df, "NY", Path("./")) | ||
assert Path("./model.csv").exists() | ||
assert Path("./results.csv").exists() | ||
os.remove("./model.csv") | ||
os.remove("./results.csv") | ||
run_model(df, "NY", Path("./testdir")) | ||
assert Path("./testdir/model.csv").exists() | ||
assert Path("./testdir/results.csv").exists() | ||
shutil.rmtree("./testdir") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters