Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Un-skip Failure test #54

Merged
merged 2 commits into from
Mar 4, 2024
Merged
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
14 changes: 7 additions & 7 deletions coverage.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" ?>
<coverage version="7.3.1" timestamp="1709533757806" lines-valid="191" lines-covered="186" line-rate="0.9738" branches-valid="66" branches-covered="61" branch-rate="0.9242" complexity="0">
<coverage version="7.3.1" timestamp="1709534576492" lines-valid="191" lines-covered="190" line-rate="0.9948" branches-valid="66" branches-covered="63" branch-rate="0.9545" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.3.1 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source>/home/jvivian/covid19-drDFM/covid19_drdfm</source>
</sources>
<packages>
<package name="." line-rate="0.9738" branch-rate="0.9242" complexity="0">
<package name="." line-rate="0.9948" branch-rate="0.9545" complexity="0">
<classes>
<class name="cli.py" filename="cli.py" complexity="0" line-rate="1" branch-rate="1">
<methods/>
Expand Down Expand Up @@ -47,7 +47,7 @@
<line number="153" hits="1"/>
</lines>
</class>
<class name="dfm.py" filename="dfm.py" complexity="0" line-rate="0.9375" branch-rate="0.85">
<class name="dfm.py" filename="dfm.py" complexity="0" line-rate="1" branch-rate="0.95">
<methods/>
<lines>
<line number="7" hits="1"/>
Expand Down Expand Up @@ -89,10 +89,10 @@
<line number="91" hits="1"/>
<line number="92" hits="1"/>
<line number="93" hits="1"/>
<line number="94" hits="0"/>
<line number="95" hits="0" branch="true" condition-coverage="0% (0/2)" missing-branches="96,97"/>
<line number="96" hits="0"/>
<line number="97" hits="0"/>
<line number="94" hits="1"/>
<line number="95" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="96" hits="1"/>
<line number="97" hits="1"/>
<line number="98" hits="1"/>
<line number="99" hits="1"/>
<line number="102" hits="1"/>
Expand Down
5 changes: 3 additions & 2 deletions tests/test_dfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_run_model_global_0():
shutil.rmtree("./testdir")


@pytest.mark.skip(reason="State no longer failing")
# @pytest.mark.skip(reason="State no longer failing")
def test_run_failure():
"""
Test the run_parameterized_model function for a state with known failure conditions
Expand All @@ -57,7 +57,8 @@ def test_run_failure():
None
"""
df = get_df()
state = "OR"
df = df[df.Time > "2019-01-01"]
state = "PA"
run_parameterized_model(df, state, Path("./testdir"), global_multiplier=2)
assert Path("./testdir/failed.txt").exists()
shutil.rmtree("./testdir")
Loading