File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,14 @@ def can_use_network():
1212 """
1313 Return True if network access is allowed
1414 """
15+
16+ if os .environ .get ("NEO_TESTS_NO_NETWORK" , False ):
17+ return False
1518 try :
1619 import datalad
17-
1820 HAVE_DATALAD = True
1921 except :
2022 HAVE_DATALAD = False
2123 if not HAVE_DATALAD :
2224 return False
23- if os .environ .get ("NOSETESTS_NO_NETWORK" , False ):
24- return False
25- if os .environ .get ("TRAVIS" ) == "true" :
26- return False
2725 return True
Original file line number Diff line number Diff line change 11import unittest
2-
2+ import pytest
33from neo .utils .datasets import download_dataset , default_testing_repo
4+ from neo .test .rawiotest .tools import can_use_network
45
56
7+ @pytest .mark .skipif (not can_use_network (), reason = "Must have acess to network to run test" )
68class TestDownloadDataset (unittest .TestCase ):
79 def test_download_dataset (self ):
810 local_path = download_dataset (repo = default_testing_repo , remote_path = "blackrock/blackrock_2_1" )
You can’t perform that action at this time.
0 commit comments