Skip to content

Commit cd23bd9

Browse files
committed
chore(pytest conf): slow marker
1 parent d990977 commit cd23bd9

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

setup.cfg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ ignore_errors = True
2727

2828
[tool:pytest]
2929
testpaths = tests
30+
markers =
31+
slow: marks tests as slow (deselect with '-m "not slow"')
32+
addopts = --strict-markers
3033

3134
[flake8]
3235
ignore = E203, E266, E501, W503, F403, F401
3336
max-line-length = 89
3437
max-complexity = 18
35-
select = B,C,E,F,W,T4,B9
38+
select = B,C,E,F,W,T4,B9

tests/test_plot.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
from experitur.plot import plot_partial_dependence
1+
import matplotlib
2+
import pytest
3+
24
from experitur.core.context import Context
35
from experitur.core.experiment import Experiment
46
from experitur.parameters import Grid
5-
import matplotlib
7+
from experitur.plot import plot_partial_dependence
68

79
matplotlib.use("Agg")
810

911

12+
@pytest.mark.slow
1013
def test_plot_partial_dependence(tmp_path):
1114
with Context(str(tmp_path), writable=True) as ctx:
1215

0 commit comments

Comments
 (0)