Skip to content

Commit

Permalink
Fix unit tests with working URLs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismattmann committed Jul 17, 2018
1 parent 30d2441 commit f402e65
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tika/tests/arguments/test_remote_content.csv
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
,"https://studentaid.ed.gov/sites/default/files/fsawg/datacenter/library/FAFSAReportDefinitions.doc",,"FAFSAReportDefinitions.doc"
,"http://open.defense.gov/Portals/23/Documents/FOIA_WebsiteCompliance.ppt",,"FOIA_WebsiteCompliance.ppt"
,"https://catalog.data.gov/dataset/geologic-map-of-the-state-of-hawaii",,"geologic-map-of-the-state-of-hawaii"
,"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"
,"https://data.oregon.gov/api/views/i8h7-mn6v/rows.csv?accessType=DOWNLOAD",,"NewBusinessList.csv"
,"http://www.dmdc.osd.mil/Rank_Gender_Race.xls",,"Rank_Gender_Race.xls"
2 changes: 1 addition & 1 deletion tika/tests/arguments/test_remote_metadata.csv
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
,"http://media.ars.usda.gov/is/mp4/freezeplants.mp4",,"freezeplants.mp4"
,"https://catalog.data.gov/dataset/geologic-map-of-the-state-of-hawaii",,"geologic-map-of-the-state-of-hawaii"
,"http://pubs.usgs.gov/of/2007/1089/Haw_St_tabfiles.zip",,"Haw_St_tabfiles.zip"
,"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"
,"https://data.oregon.gov/api/views/i8h7-mn6v/rows.csv?accessType=DOWNLOAD",,"NewBusinessList.csv"
,"http://www.dmdc.osd.mil/Rank_Gender_Race.xls",,"Rank_Gender_Race.xls"
4 changes: 2 additions & 2 deletions tika/tests/test_tika.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ def test_remote_pdf(self):
def test_remote_html(self):
'parse remote HTML'
self.assertTrue(tika.parser.from_file(
'https://www.nasa.gov/index.html'))
'https://www.jpl.nasa.gov/index.html'))
def test_remote_mp3(self):
'parese remote mp3'
self.assertTrue(tika.parser.from_file(
'http://tindeck.com/download/pro/viqis/theCalling-Lemming-Version.mp3'))
'https://archive.org/download/Ainst-Spaceshipdemo.mp3/Ainst-Spaceshipdemo.mp3'))
def test_remote_jpg(self):
'parse remote jpg'
self.assertTrue(tika.parser.from_file(
Expand Down

0 comments on commit f402e65

Please sign in to comment.