-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Mark tests that are expected to fail with
xfail
rather than just no…
…t running them (#367) * update gitignore * xfail tests rather than commenting out
- Loading branch information
1 parent
f1e3785
commit 767f5d1
Showing
2 changed files
with
37 additions
and
34 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,33 +1,36 @@ | ||
# import pandas as pd | ||
# import pytest | ||
# | ||
# from brainrender import Scene | ||
# from brainrender.actors.streamlines import ( | ||
# Streamlines, | ||
# make_streamlines, | ||
# ) | ||
# from brainrender.atlas_specific import get_streamlines_for_region | ||
# | ||
# | ||
# def test_download(): | ||
# streams = get_streamlines_for_region("TH", force_download=False) | ||
# assert len(streams) == 54 | ||
# assert isinstance(streams[0], pd.DataFrame) | ||
# | ||
# | ||
# def test_download_slow(): | ||
# streams = get_streamlines_for_region("TH", force_download=True) | ||
# assert len(streams) == 54 | ||
# assert isinstance(streams[0], pd.DataFrame) | ||
# | ||
# | ||
# def test_streamlines(): | ||
# s = Scene(title="BR") | ||
# streams = get_streamlines_for_region("TH", force_download=False) | ||
# s.add(Streamlines(streams[0])) | ||
# s.add(*make_streamlines(*streams[1:3])) | ||
# | ||
# with pytest.raises(TypeError): | ||
# Streamlines([1, 2, 3]) | ||
# | ||
# del s | ||
import pandas as pd | ||
import pytest | ||
|
||
from brainrender import Scene | ||
from brainrender.actors.streamlines import ( | ||
Streamlines, | ||
make_streamlines, | ||
) | ||
from brainrender.atlas_specific import get_streamlines_for_region | ||
|
||
|
||
@pytest.mark.xfail(reason="Likely due to fail due to neuromorpho") | ||
def test_download(): | ||
streams = get_streamlines_for_region("TH", force_download=False) | ||
assert len(streams) == 54 | ||
assert isinstance(streams[0], pd.DataFrame) | ||
|
||
|
||
@pytest.mark.xfail(reason="Likely due to fail due to neuromorpho") | ||
def test_download_slow(): | ||
streams = get_streamlines_for_region("TH", force_download=True) | ||
assert len(streams) == 54 | ||
assert isinstance(streams[0], pd.DataFrame) | ||
|
||
|
||
@pytest.mark.xfail(reason="Likely due to fail due to neuromorpho") | ||
def test_streamlines(): | ||
s = Scene(title="BR") | ||
streams = get_streamlines_for_region("TH", force_download=False) | ||
s.add(Streamlines(streams[0])) | ||
s.add(*make_streamlines(*streams[1:3])) | ||
|
||
with pytest.raises(TypeError): | ||
Streamlines([1, 2, 3]) | ||
|
||
del s |