-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: Ensure we dont download without permission (#1073)
* MAINT: Ensure we dont download without permission * MAINT: Fix data_path usage * FIX: macOS login bug * FIX: One more * FIX: Generic * FIX: Name * FIX: Needs shell * FIX: Conditional * FIX: Simplify * FIX: Recomplicate, but better * FIX: No data in doctests * FIX: Flake
- Loading branch information
Showing
16 changed files
with
251 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"""Configure all tests.""" | ||
import mne | ||
import pytest | ||
|
||
|
||
def pytest_configure(config): | ||
"""Configure pytest options.""" | ||
# Fixtures | ||
config.addinivalue_line('usefixtures', 'monkeypatch_mne') | ||
|
||
|
||
@pytest.fixture(scope='session') | ||
def monkeypatch_mne(): | ||
"""Monkeypatch MNE to ensure we have download=False everywhere in tests.""" | ||
mne.datasets.utils._MODULES_TO_ENSURE_DOWNLOAD_IS_FALSE_IN_TESTS = \ | ||
('mne', 'mne_bids') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.