Skip to content
Snippets Groups Projects
Unverified Commit 331dcde1 authored by Jeremy M Fee's avatar Jeremy M Fee Committed by GitHub
Browse files

Merge pull request #194 from hschovanec-usgs/hschovanec-fix-test

Fix hanging test
parents 5a0f9c32 2c553c83
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ install: ...@@ -25,7 +25,7 @@ install:
- source activate test-environment - source activate test-environment
script: script:
- flake8 --config=.flake8 bin/ geomagio/ test/ - flake8 --config=.flake8 bin/ geomagio/ test/
- nosetests . - nosetests -v .
after_success: after_success:
- nosetests --with-coverage --cover-package=geomagio --cover-xml - nosetests --with-coverage --cover-package=geomagio --cover-xml
- bash <(curl -s https://codecov.io/bash) - bash <(curl -s https://codecov.io/bash)
...@@ -44,11 +44,12 @@ def test_times(): ...@@ -44,11 +44,12 @@ def test_times():
Call the _format_times method with the test Call the _format_times method with the test
data and channels. data and channels.
Verify, the times are the correct value and format. Verify, the times are the correct value and string format.
""" """
writer = IMFJSONWriter() writer = IMFJSONWriter()
times = writer._format_times(EXAMPLE_DATA, EXAMPLE_CHANNELS) 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) usecols=(0, 1), unpack=True, dtype=str)
test_date_times = [] test_date_times = []
for idx in range(test_day.shape[0]): 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