summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2018-10-29 16:19:42 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2018-10-29 16:19:42 -0400
commitb5636eba53be446a888a1b6b5f5e0afb894717a8 (patch)
treefa95dfce72004d73f4fffeeaadc720c28522d9fb
parent05b2236a8dc2c7bccfde840fa406e7ff2ab8cdc1 (diff)
downloadpyisda-b5636eba53be446a888a1b6b5f5e0afb894717a8.tar.gz
fix test and add to Makefile
-rw-r--r--Makefile5
-rw-r--r--tests/test_pickle.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 82696cb..4b684bf 100644
--- a/Makefile
+++ b/Makefile
@@ -11,4 +11,7 @@ install:
docs: build
make -C docs html
-.PHONY: build docs clean
+test:
+ python -m unittest discover tests -v
+
+.PHONY: build docs clean test
diff --git a/tests/test_pickle.py b/tests/test_pickle.py
index 9eabcec..32d45bf 100644
--- a/tests/test_pickle.py
+++ b/tests/test_pickle.py
@@ -39,7 +39,8 @@ class TestPickle(unittest.TestCase):
value_date,
[end_date],
np.array([75 * 1e-4]),
- 0.4,
+ np.array([0.]),
+ np.array([0.4]),
)
sc_pickled = loads(dumps(sc, 2))
self.assertListAlmostEqual(