Skip to content

Commit

Permalink
skip tests that require pandas if pandas not available
Browse files Browse the repository at this point in the history
  • Loading branch information
rebeccabilbro committed Jan 15, 2021
1 parent 06206db commit 98d1920
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_contrib/test_missing/test_bar.py
Expand Up @@ -47,6 +47,7 @@ class TestMissingBarVisualizer(VisualTestCase):
FeatureImportances visualizer
"""

@pytest.mark.skipif(pd is None, reason="pandas is required")
def test_missingvaluesbar_pandas(self):
"""
Integration test of visualizer with pandas
Expand Down
2 changes: 2 additions & 0 deletions tests/test_contrib/test_missing/test_dispersion.py
Expand Up @@ -47,6 +47,7 @@ class TestMissingValuesDispersion(VisualTestCase):
MissingValuesDispersion visualizer
"""

@pytest.mark.skipif(pd is None, reason="pandas is required")
def test_missingvaluesdispersion_with_pandas(self):
"""
Integration test of visualizer with pandas
Expand All @@ -72,6 +73,7 @@ def test_missingvaluesdispersion_with_pandas(self):

self.assert_images_similar(viz, tol=self.tol)

@pytest.mark.skipif(pd is None, reason="pandas is required")
def test_missingvaluesdispersion_with_pandas_with_y_targets(self):
"""
Integration test of visualizer with pandas with y targets
Expand Down

0 comments on commit 98d1920

Please sign in to comment.