Skip to content

Commit 9182037

Browse files
authored
Fixing file URLs used in tests
1 parent bb5effa commit 9182037

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_data.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
@pytest.fixture(scope="session", autouse=True)
1212
def before_tests(request):
1313
# Download files for local use
14-
urllib.request.urlretrieve("https://software.broadinstitute.org/cancer/software/genepattern/data/all_aml/all_aml_test.gct", "all_aml_test.gct")
15-
urllib.request.urlretrieve("https://software.broadinstitute.org/cancer/software/genepattern/data/protocols/all_aml_test.preprocessed.comp.marker.odf",
14+
urllib.request.urlretrieve("https://datasets.genepattern.org/data/all_aml/all_aml_test.gct", "all_aml_test.gct")
15+
urllib.request.urlretrieve("https://datasets.genepattern.org/data/all_aml/all_aml_test.preprocessed.comp.marker.odf",
1616
"all_aml_test.preprocessed.comp.marker.odf")
1717

1818
# Clean up after ourselves
@@ -21,7 +21,7 @@ def before_tests(request):
2121

2222
def test_gct_load_gpfile():
2323
gpfile = gp.GPFile(gp.GPServer('http://genepattern.broadinstitute.org/gp', '', ''),
24-
'https://software.broadinstitute.org/cancer/software/genepattern/data/all_aml/all_aml_test.gct')
24+
'https://datasets.genepattern.org/data/all_aml/all_aml_test.gct')
2525
gct = gp.data.GCT(gpfile)
2626
gct_asserts(gct)
2727

@@ -33,7 +33,7 @@ def test_gct_load_file():
3333

3434

3535
def test_gct_load_url():
36-
gct = gp.data.GCT('https://software.broadinstitute.org/cancer/software/genepattern/data/all_aml/all_aml_test.gct')
36+
gct = gp.data.GCT('https://datasets.genepattern.org/data/all_aml/all_aml_test.gct')
3737
gct_asserts(gct)
3838

3939

@@ -51,7 +51,7 @@ def test_gct_load_string():
5151

5252
def test_odf_load_gpfile():
5353
gpfile = gp.GPFile(gp.GPServer('http://genepattern.broadinstitute.org/gp', '', ''),
54-
'https://software.broadinstitute.org/cancer/software/genepattern/data/protocols/all_aml_test.preprocessed.comp.marker.odf')
54+
'https://datasets.genepattern.org/data/all_aml/all_aml_test.preprocessed.comp.marker.odf')
5555
odf = gp.data.ODF(gpfile)
5656
odf_asserts(odf)
5757

@@ -63,7 +63,7 @@ def test_odf_load_file():
6363

6464

6565
def test_odf_load_url():
66-
odf = gp.data.ODF('https://software.broadinstitute.org/cancer/software/genepattern/data/protocols/all_aml_test.preprocessed.comp.marker.odf')
66+
odf = gp.data.ODF('https://datasets.genepattern.org/data/all_aml/all_aml_test.preprocessed.comp.marker.odf')
6767
odf_asserts(odf)
6868

6969

0 commit comments

Comments
 (0)