Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tybug committed Apr 27, 2024
1 parent 3cb1284 commit a3c9b0a
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions hypothesis-python/tests/cover/test_simple_collections.py
Expand Up @@ -112,9 +112,7 @@ def test_sets_of_fixed_length(n):

@pytest.mark.parametrize("n", range(10))
def test_dictionaries_of_fixed_length(n):
x = set(
minimal(dictionaries(integers(), booleans(), min_size=n, max_size=n)).keys()
)
x = set(minimal(dictionaries(integers(), booleans(), min_size=n, max_size=n)))

if not n:
assert x == set()
Expand Down Expand Up @@ -166,10 +164,8 @@ def test_small_sized_sets(x):


def test_minimize_dicts_with_incompatible_keys():
assert minimal(fixed_dictionaries({1: booleans(), "hi": lists(booleans())})) == {
1: False,
"hi": [],
}
strat = fixed_dictionaries({1: booleans(), "hi": lists(booleans())})
assert minimal(strat) == {1: False, "hi": []}


@given(
Expand Down

0 comments on commit a3c9b0a

Please sign in to comment.