-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve test coverage on load-liblsl and on datasets (#176)
- Loading branch information
1 parent
9c18ac0
commit 5c7988c
Showing
19 changed files
with
145 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.. _Arnaud Desvachez: https://github.com/dnastars | ||
.. _Eric Larson: https://github.com/larsoner | ||
.. _Kyuhwa Lee: https://github.com/dbdq | ||
.. _Mathieu Scheltienne: https://github.com/mscheltienne |
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
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,23 @@ | ||
import pytest | ||
|
||
from mne_lsl.datasets import sample, testing | ||
from mne_lsl.datasets.sample import _REGISTRY as _REGISTRY_SAMPLE | ||
from mne_lsl.datasets.testing import _REGISTRY as _REGISTRY_TESTING | ||
from mne_lsl.utils._tests import sha256sum | ||
|
||
|
||
@pytest.mark.parametrize("dataset", [sample, testing]) | ||
def test_data_path(dataset): | ||
"""Test download if the testing dataset.""" | ||
path = dataset.data_path() | ||
assert path.exists() | ||
|
||
|
||
@pytest.mark.parametrize( | ||
"dataset, registry", [(sample, _REGISTRY_SAMPLE), (testing, _REGISTRY_TESTING)] | ||
) | ||
def test_make_registry(tmp_path, dataset, registry): | ||
"""Test the registrytmp_path making.""" | ||
dataset._make_registry(dataset.data_path(), output=tmp_path / "registry.txt") | ||
assert (tmp_path / "registry.txt").exists() | ||
assert sha256sum(tmp_path / "registry.txt") == sha256sum(registry) |
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
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.