Skip to content

Commit

Permalink
Limit the size of drawn dataframes drawn in test
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzaponte committed Mar 11, 2020
1 parent c958cc3 commit 3fb5a6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion invisible_cities/core/testing_utils_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from hypothesis.strategies import integers
from hypothesis. extra.pandas import data_frames
from hypothesis. extra.pandas import column
from hypothesis. extra.pandas import range_indexes
from . testing_utils import all_elements_close
from . testing_utils import assert_tables_equality

Expand All @@ -31,7 +32,8 @@ def test_all_elements_close_par(mu, sigma):

@given(data_frames([column('A', dtype=int ),
column('B', dtype=float),
column('C', dtype=str )]))
column('C', dtype=str )],
index = range_indexes(max_size=5)))
def test_assert_tables_equality(df):
table = df.to_records(index=False)
assert_tables_equality(table, table)
Expand Down

0 comments on commit 3fb5a6a

Please sign in to comment.