Skip to content

Commit a3fed3f

Browse files
committed
ruff on tests
1 parent 7a323f9 commit a3fed3f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_evaluation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,10 +391,12 @@ class TestSleepStatsAgreementPlotBlandAltman(unittest.TestCase):
391391
@classmethod
392392
def setUpClass(cls):
393393
import matplotlib
394+
394395
matplotlib.use("Agg")
395396

396397
def test_returns_facetgrid(self):
397398
import seaborn as sns
399+
398400
g = ssa.plot_blandaltman(ci_method="param")
399401
assert isinstance(g, sns.FacetGrid)
400402

@@ -477,7 +479,9 @@ def test_facetgrid_kwargs_passthrough(self):
477479
# FacetGrid col_wrap should reflect the override
478480
assert g._col_wrap == 1
479481

482+
480483
def ax_collections(ax):
481484
"""Return PathCollections (scatter plots) from an Axes."""
482485
from matplotlib.collections import PathCollection
486+
483487
return [c for c in ax.collections if isinstance(c, PathCollection)]

0 commit comments

Comments
 (0)