Skip to content
Snippets Groups Projects
Commit 2c553c83 authored by Hunsinger, Heather Elizabeth's avatar Hunsinger, Heather Elizabeth
Browse files

Fix hanging test

parent 5a0f9c32
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ install:
- source activate test-environment
script:
- flake8 --config=.flake8 bin/ geomagio/ test/
- nosetests .
- nosetests -v .
after_success:
- nosetests --with-coverage --cover-package=geomagio --cover-xml
- bash <(curl -s https://codecov.io/bash)
......@@ -44,11 +44,12 @@ def test_times():
Call the _format_times method with the test
data and channels.
Verify, the times are the correct value and format.
Verify, the times are the correct value and string format.
"""
writer = IMFJSONWriter()
times = writer._format_times(EXAMPLE_DATA, EXAMPLE_CHANNELS)
test_day, test_time = np.loadtxt(EXAMPLE_FILE, skiprows=25,
# load times to test against
test_day, test_time = np.genfromtxt(EXAMPLE_FILE, skip_header=25,
usecols=(0, 1), unpack=True, dtype=str)
test_date_times = []
for idx in range(test_day.shape[0]):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment