Skip to content

Commit

Permalink
add network decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
wholmgren committed Mar 2, 2015
1 parent f2d92b1 commit 13ef2d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pvlib/test/test_tmy.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import inspect
import os

from pandas.util.testing import network

test_dir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
tmy3_testfile = os.path.join(test_dir, '../data/703165TY.csv')
tmy2_testfile = os.path.join(test_dir, '../data/12839.tm2')
Expand All @@ -13,7 +15,8 @@

def test_readtmy3():
tmy.readtmy3(tmy3_testfile)


@network
def test_readtmy3_remote():
url = 'http://rredc.nrel.gov/solar/old_data/nsrdb/1991-2005/data/tmy3/703165TYA.CSV'
tmy.readtmy3(url)
Expand Down

0 comments on commit 13ef2d6

Please sign in to comment.