Skip to content

Commit b095d65

Browse files
mbalatskosnwnde
authored andcommitted
Mark tests as network tests (mne-tools#12041)
1 parent d4a1426 commit b095d65

File tree

4 files changed

+6
-0
lines changed

4 files changed

+6
-0
lines changed

doc/changes/devel.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Bugs
4040
~~~~
4141
- Fix bugs with :func:`mne.preprocessing.realign_raw` where the start of ``other`` was incorrectly cropped; and onsets and durations in ``other.annotations`` were left unsynced with the resampled data (:gh:`11950` by :newcontrib:`Qian Chu`)
4242
- Fix bug where ``encoding`` argument was ignored when reading annotations from an EDF file (:gh:`11958` by :newcontrib:`Andrew Gilbert`)
43+
- Mark tests ``test_adjacency_matches_ft`` and ``test_fetch_uncompressed_file`` as network tests (:gh:`12041` by :newcontrib:`Maksym Balatsko`)
4344
- Fix bugs with saving splits for :class:`~mne.Epochs` (:gh:`11876` by `Dmitrii Altukhov`_)
4445
- Fix bug with multi-plot 3D rendering where only one plot was updated (:gh:`11896` by `Eric Larson`_)
4546
- Fix bug where subject birthdays were not correctly read by :func:`mne.io.read_raw_snirf` (:gh:`11912` by `Eric Larson`_)

doc/changes/names.inc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,8 @@
320320

321321
.. _Mainak Jas: https://jasmainak.github.io
322322

323+
.. _Maksym Balatsko: https://github.com/mbalatsko
324+
323325
.. _Marcin Koculak: https://github.com/mkoculak
324326

325327
.. _Marian Dovgialo: https://github.com/mdovgialo

mne/channels/tests/test_channels.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
)
5252
from mne.datasets import testing
5353
from mne.parallel import parallel_func
54+
from mne.utils import requires_good_network
5455

5556
io_dir = Path(__file__).parent.parent.parent / "io"
5657
base_dir = io_dir / "tests" / "data"
@@ -362,6 +363,7 @@ def _download_one_ft_neighbor(neighbor: _BuiltinChannelAdjacency):
362363

363364

364365
@pytest.mark.slowtest
366+
@requires_good_network
365367
def test_adjacency_matches_ft(tmp_path):
366368
"""Test correspondence of built-in adjacency matrices with FT repo."""
367369
builtin_neighbors_dir = Path(__file__).parents[1] / "data" / "neighbors"

mne/datasets/tests/test_datasets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,7 @@ def test_phantom(tmp_path, monkeypatch):
306306
assert op.isfile(tmp_path / "phantom_otaniemi" / "mri" / "T1.mgz")
307307

308308

309+
@requires_good_network
309310
def test_fetch_uncompressed_file(tmp_path):
310311
"""Test downloading an uncompressed file with our fetch function."""
311312
dataset_dict = dict(

0 commit comments

Comments
 (0)