From b5636eba53be446a888a1b6b5f5e0afb894717a8 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Mon, 29 Oct 2018 16:19:42 -0400 Subject: fix test and add to Makefile --- Makefile | 5 ++++- tests/test_pickle.py | 3 ++- 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( -- cgit v1.2.3-70-g09d2