Skip to content

Commit

Permalink
skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrockhill committed Jul 28, 2022
1 parent db7a90a commit 939d8a4
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mne/viz/tests/test_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
# License: Simplified BSD

import sys
import os.path as op
from pathlib import Path

Expand Down Expand Up @@ -789,6 +790,9 @@ def test_plot_source_estimates(renderer_interactive, all_src_types_inv_evoked,
del brain


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@pytest.mark.parametrize('orientation', ('horizontal', 'vertical'))
@pytest.mark.parametrize('diverging', (True, False))
@pytest.mark.parametrize('lims', ([0.5, 1, 10], [0, 1, 10]))
Expand Down
4 changes: 4 additions & 0 deletions mne/viz/tests/test_evoked.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#
# License: Simplified BSD

import sys
import os.path as op

import numpy as np
Expand Down Expand Up @@ -252,6 +253,9 @@ def test_plot_evoked_reconstruct(picks, rlims, avg_proj):
plt.close('all')


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_evoked_image():
"""Test plot_evoked_image."""
evoked = _get_epochs().average()
Expand Down
6 changes: 6 additions & 0 deletions mne/viz/tests/test_ica.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def _get_epochs():
return epochs


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@requires_sklearn
def test_plot_ica_components():
"""Test plotting of ICA solutions."""
Expand Down Expand Up @@ -230,6 +233,9 @@ def test_plot_ica_properties():
ica.plot_properties(raw_annot, reject_by_annotation=False, **topoargs)


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@requires_sklearn
def test_plot_ica_sources(raw_orig, browser_backend, monkeypatch):
"""Test plotting of ICA panel."""
Expand Down
13 changes: 13 additions & 0 deletions mne/viz/tests/test_raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#
# License: Simplified BSD

import sys
import itertools
import os
from copy import deepcopy
Expand Down Expand Up @@ -263,6 +264,9 @@ def test_scale_bar(browser_backend):
assert_allclose(y_lims, bar_lims, atol=1e-4)


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_raw_selection(raw, browser_backend):
"""Test selection mode of plot_raw()."""
ismpl = browser_backend.name == 'matplotlib'
Expand Down Expand Up @@ -350,6 +354,9 @@ def test_plot_raw_selection(raw, browser_backend):
assert browser_backend._get_n_figs() == 0


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_raw_ssp_interaction(raw, browser_backend):
"""Test SSP projector UI of plot_raw()."""
with raw.info._unlock():
Expand Down Expand Up @@ -389,6 +396,9 @@ def test_plot_raw_ssp_interaction(raw, browser_backend):
assert _proj_status(ssp_fig, browser_backend) == [True, True, True]


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_raw_child_figures(raw, browser_backend):
"""Test spawning and closing of child figures."""
ismpl = browser_backend.name == 'matplotlib'
Expand Down Expand Up @@ -923,6 +933,9 @@ def test_scalings_int(browser_backend):
raw.plot(scalings='auto')


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@pytest.mark.parametrize('dur, n_dec', [(20, 1), (1.8, 2), (0.01, 4)])
def test_clock_xticks(raw, dur, n_dec, browser_backend):
"""Test if decimal seconds of xticks have appropriate length."""
Expand Down
4 changes: 4 additions & 0 deletions mne/viz/tests/test_topo.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#
# License: Simplified BSD

import sys
from collections import namedtuple
import os.path as op

Expand Down Expand Up @@ -215,6 +216,9 @@ def test_plot_topo_nirs(fnirs_evoked):
plt.close('all')


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_topo_single_ch():
"""Test single channel topoplot with time cursor."""
evoked = _get_epochs().average()
Expand Down
10 changes: 10 additions & 0 deletions mne/viz/tests/test_topomap.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#
# License: Simplified BSD

import sys
import os.path as op
from functools import partial

Expand Down Expand Up @@ -52,6 +53,9 @@
cov_fname = op.join(base_dir, 'test-cov.fif')


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@pytest.mark.parametrize('constrained_layout', (False, True))
def test_plot_topomap_interactive(constrained_layout):
"""Test interactive topomap projection plotting."""
Expand Down Expand Up @@ -149,6 +153,9 @@ def test_plot_projs_topomap():
plot_projs_topomap([eeg_proj], info_meg)


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
def test_plot_topomap_animation(capsys):
"""Test topomap plotting."""
# evoked
Expand All @@ -165,6 +172,9 @@ def test_plot_topomap_animation(capsys):
plt.close('all')


# see https://github.com/mne-tools/mne-python/issues/10961
@pytest.mark.skipif(
sys.platform.startswith('win'), reason='Needs fix on Windows')
@pytest.mark.filterwarnings('ignore:.*No contour levels.*:UserWarning')
def test_plot_topomap_animation_nirs(fnirs_evoked, capsys):
"""Test topomap plotting for nirs data."""
Expand Down

0 comments on commit 939d8a4

Please sign in to comment.