Skip to content

Commit

Permalink
xfail tests rather than commenting out
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Jun 7, 2024
1 parent 5a0a0f3 commit 303474f
Showing 1 changed file with 36 additions and 33 deletions.
69 changes: 36 additions & 33 deletions tests/test_streamlines.py
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

0 comments on commit 303474f

Please sign in to comment.