Skip to content

Commit

Permalink
simple tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sam-watts committed Apr 21, 2022
1 parent 88b0bec commit efa9db6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hypothesis-python/tests/pandas/test_indexes.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ def test_unique_indexes_of_many_small_values(ix):
assert len(set(ix)) == len(ix)


@given(pdst.indexes(dtype="int8", name=st.just("test_name")))
def test_name_passed_on(s):
assert s.name == "test_name"


# Sizes that fit into an int64 without overflow
range_sizes = st.integers(0, 2**63 - 1)

Expand Down
5 changes: 5 additions & 0 deletions hypothesis-python/tests/pandas/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,8 @@ def test_will_use_a_provided_elements_strategy(s):
@given(pdst.series(dtype="int8", unique=True))
def test_unique_series_are_unique(s):
assert len(s) == len(set(s))


@given(pdst.series(dtype="int8", name=st.just("test_name")))
def test_name_passed_on(s):
assert s.name == "test_name"

0 comments on commit efa9db6

Please sign in to comment.