Skip to content

Commit f402e65

Browse files
committed
Fix unit tests with working URLs.
1 parent 30d2441 commit f402e65

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tika/tests/arguments/test_remote_content.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
,"https://studentaid.ed.gov/sites/default/files/fsawg/datacenter/library/FAFSAReportDefinitions.doc",,"FAFSAReportDefinitions.doc"
55
,"http://open.defense.gov/Portals/23/Documents/FOIA_WebsiteCompliance.ppt",,"FOIA_WebsiteCompliance.ppt"
66
,"https://catalog.data.gov/dataset/geologic-map-of-the-state-of-hawaii",,"geologic-map-of-the-state-of-hawaii"
7-
,"http://data.octo.dc.gov/Attachment.aspx?where=Citywide&area=&what=CSV&date=Issueddate&from=4/12/2015%2012:00:00%20AM&to=4/19/2015%2010:00:00%20PM&dataset=DCRA_PERMIT&datasetid=5&whereInd=0&areaInd=0&whatInd=0&dateInd=0&whenInd=0",,"DCRA_PERMIT__from04_12_2015__to04_19_2015.csv"
7+
,"https://data.oregon.gov/api/views/i8h7-mn6v/rows.csv?accessType=DOWNLOAD",,"NewBusinessList.csv"
88
,"http://www.dmdc.osd.mil/Rank_Gender_Race.xls",,"Rank_Gender_Race.xls"

tika/tests/arguments/test_remote_metadata.csv

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
,"http://media.ars.usda.gov/is/mp4/freezeplants.mp4",,"freezeplants.mp4"
1515
,"https://catalog.data.gov/dataset/geologic-map-of-the-state-of-hawaii",,"geologic-map-of-the-state-of-hawaii"
1616
,"http://pubs.usgs.gov/of/2007/1089/Haw_St_tabfiles.zip",,"Haw_St_tabfiles.zip"
17-
,"http://data.octo.dc.gov/Attachment.aspx?where=Citywide&area=&what=CSV&date=Issueddate&from=4/12/2015%2012:00:00%20AM&to=4/19/2015%2010:00:00%20PM&dataset=DCRA_PERMIT&datasetid=5&whereInd=0&areaInd=0&whatInd=0&dateInd=0&whenInd=0",,"DCRA_PERMIT__from04_12_2015__to04_19_2015.csv"
17+
,"https://data.oregon.gov/api/views/i8h7-mn6v/rows.csv?accessType=DOWNLOAD",,"NewBusinessList.csv"
1818
,"http://www.dmdc.osd.mil/Rank_Gender_Race.xls",,"Rank_Gender_Race.xls"

tika/tests/test_tika.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ def test_remote_pdf(self):
3131
def test_remote_html(self):
3232
'parse remote HTML'
3333
self.assertTrue(tika.parser.from_file(
34-
'https://www.nasa.gov/index.html'))
34+
'https://www.jpl.nasa.gov/index.html'))
3535
def test_remote_mp3(self):
3636
'parese remote mp3'
3737
self.assertTrue(tika.parser.from_file(
38-
'http://tindeck.com/download/pro/viqis/theCalling-Lemming-Version.mp3'))
38+
'https://archive.org/download/Ainst-Spaceshipdemo.mp3/Ainst-Spaceshipdemo.mp3'))
3939
def test_remote_jpg(self):
4040
'parse remote jpg'
4141
self.assertTrue(tika.parser.from_file(

0 commit comments

Comments
 (0)