Skip to content

Commit

Permalink
Merge 656fd3e into 8340390
Browse files Browse the repository at this point in the history
  • Loading branch information
soazig committed Dec 12, 2015
2 parents 8340390 + 656fd3e commit 9ffc012
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ clean:
find . -name "*.so" -o -name "*.pyc" -o -name "*.pyx.md5" | xargs rm -f

coverage:
nosetests code/utils/tests data/tests/ --with-coverage --cover-package=code/utils/functions,data/tests/test_get_check_hashes.py
nosetests code/utils/tests data/tests/ --with-coverage --cover-package=code/utils/functions,data/data.py

test:
nosetests code/utils/tests data/tests/
Expand Down
12 changes: 6 additions & 6 deletions data/tests/test_get_check_hashes.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
Run with:
nosetests test_get_check_hashes.py
"""
from __future__ import print_function
from __future__ import ( division, absolute_import, print_function, unicode_literals )
import sys, os, pdb
import tempfile
import json

try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
if sys.version_info >= (3,):
import urllib.request as urllib2
else:
import urllib2

#Specicy the path for functions
sys.path.append(os.path.join(os.path.dirname(__file__), "../"))
Expand All @@ -30,7 +30,7 @@ def test_check_hashes():
def test_get_hashes():
#Download json file senators-list.json and store it in the current directory
url = 'http://jarrodmillman.com/rcsds/data/senators-list.json'
in_file = urlopen(url)
in_file = urllib2.urlopen(url)
out_file = open('senators-list.json', 'wb')
out_file.write(in_file.read())
out_file.close()
Expand Down

0 comments on commit 9ffc012

Please sign in to comment.