diff --git a/setup.py b/setup.py index b27c1cf..362b7b5 100644 --- a/setup.py +++ b/setup.py @@ -52,6 +52,7 @@ 'matplotlib', 'h5py', 'mpldatacursor', + 'pandas>=1.0', # 'pyqt' # cannot be installed through pip. Install PyQt5 manually ], classifiers=[ diff --git a/test/test_02.py b/test/test_02.py index e36f33e..b867591 100644 --- a/test/test_02.py +++ b/test/test_02.py @@ -43,25 +43,22 @@ def test_rate_slow(slow_data, rate, expected): assert_array_equal(expected, actual) -@pytest.mark.xfail @pytest.mark.parametrize("specie, expected", [(1, test_arr), (2, test_arr[::-1]) ] ) def test_density_fast(fast_data, specie, expected): actual = fast_data.density(specie) - assert_array_equal(expected, actual) + assert_array_equal(expected, actual, err_msg="check if pandas>=1.0") -@pytest.mark.xfail @pytest.mark.parametrize("cond, expected", [(1, test_arr), (2, test_arr[::-1]) ] ) def test_condition_fast(fast_data, cond, expected): actual = fast_data.condition(cond) - assert_array_equal(expected, actual) + assert_array_equal(expected, actual, err_msg="check if pandas>=1.0") -@pytest.mark.xfail @pytest.mark.parametrize("rate, expected", [(1, test_arr)] ) def test_rate_fast(fast_data, rate, expected): actual = fast_data.condition(rate) - assert_array_equal(expected, actual) \ No newline at end of file + assert_array_equal(expected, actual, err_msg="check if pandas>=1.0") \ No newline at end of file