Skip to content

Commit

Permalink
Fix issue #6
Browse files Browse the repository at this point in the history
  • Loading branch information
githeap committed Jan 3, 2021
1 parent cfdc20c commit 630fb0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
'matplotlib',
'h5py',
'mpldatacursor',
'pandas>=1.0',
# 'pyqt' # cannot be installed through pip. Install PyQt5 manually
],
classifiers=[
Expand Down
9 changes: 3 additions & 6 deletions test/test_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
assert_array_equal(expected, actual, err_msg="check if pandas>=1.0")

0 comments on commit 630fb0d

Please sign in to comment.