Skip to content

Commit

Permalink
speeding up tests withou mock
Browse files Browse the repository at this point in the history
  • Loading branch information
solomon-negusse committed Dec 23, 2016
1 parent 87d4074 commit 198fc5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/usgs_nwis_hdf5_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,13 +472,14 @@ def test_last_refresh_gets_updated(test_file_path):
second_timestamp = '2013-02-02T02:02:02'
forth_timestamp = '2013-03-03T03:03:03'
site_code = '01117800'
start_date = '2016-11-10'
site_data_file = test_util.get_test_file_path(
'usgs/nwis/site_%s_daily.xml' % site_code)

# with test_util.mocked_urls(site_data_file):
with freezegun.freeze_time(first_timestamp):
nwis.hdf5.update_site_data(site_code, path=test_file_path,
autorepack=False)
autorepack=False, start=start_date)
first_refresh = nwis.hdf5._get_last_refresh(site_code, test_file_path)
assert first_refresh == first_timestamp

Expand Down

0 comments on commit 198fc5a

Please sign in to comment.