Skip to content
Snippets Groups Projects
Commit a5b93135 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

simplyfied tests

parent 12a648b0
No related branches found
No related tags found
1 merge request!218Flags
...@@ -194,12 +194,11 @@ def __hist(): ...@@ -194,12 +194,11 @@ def __hist():
@pytest.mark.parametrize('s, max_val', [ @pytest.mark.parametrize('s, max_val', [
(pd.Series(val, index=range(6), dtype=float), max_val) (pd.Series(0, index=range(6), dtype=float), 0),
for val, max_val (pd.Series(1, index=range(6), dtype=float), 1),
in zip( (pd.Series(np.nan, index=range(6), dtype=float), 1),
[0, 1, np.nan, 1, 0], (pd.Series(1, index=range(6), dtype=float), 1),
[0, 1, 1, 1, 1] # expected max-val (pd.Series(0, index=range(6), dtype=float), 1),
)
]) ])
def test_append(__hist, s, max_val): def test_append(__hist, s, max_val):
hist = __hist hist = __hist
...@@ -211,12 +210,10 @@ def test_append(__hist, s, max_val): ...@@ -211,12 +210,10 @@ def test_append(__hist, s, max_val):
# this test append more rows to the resulting # this test append more rows to the resulting
# FH from the former test # FH from the former test
@pytest.mark.parametrize('s, max_val', [ @pytest.mark.parametrize('s, max_val', [
(pd.Series(val, index=range(6), dtype=float), max_val) (pd.Series(0, index=range(6), dtype=float), 0),
for val, max_val (pd.Series(1, index=range(6), dtype=float), 1),
in zip( (pd.Series(np.nan, index=range(6), dtype=float), 1),
[0, 1, np.nan, 0], (pd.Series(0, index=range(6), dtype=float), 0),
[0, 1, 1, 0], # expected max-val
)
]) ])
def test_append_force(__hist, s, max_val): def test_append_force(__hist, s, max_val):
hist = __hist hist = __hist
......
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