Skip to content
This repository was archived by the owner on Nov 15, 2019. It is now read-only.

Commit 5d54c69

Browse files
committed
Add pytest file. Fix failed doctest.
1 parent a13cf8f commit 5d54c69

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

fetch/http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def filename_from_url(url):
2424
>>> filename_from_url('http://example.com/somefile.zip')
2525
'somefile.zip'
2626
>>> filename_from_url('http://oceandata.sci.gsfc.nasa.gov/Ancillary/LUTs/modis/utcpole.dat')
27-
'urcpole.dat'
27+
'utcpole.dat'
2828
"""
2929
return url.split('/')[-1]
3030

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --doctest-modules

0 commit comments

Comments
 (0)