Debian Codegraph @

hypothesis-python/tests/cover/test_draw_example.py

raw
1 # This file is part of Hypothesis, which may be found at
2 # https://github.com/HypothesisWorks/hypothesis/
3 #
4 # Copyright the Hypothesis Authors.
5 # Individual contributors are listed in AUTHORS.rst and the git log.
6 #
7 # This Source Code Form is subject to the terms of the Mozilla Public License,
8 # v. 2.0. If a copy of the MPL was not distributed with this file, You can
9 # obtain one at https://mozilla.org/MPL/2.0/.
10
11 import pytest
12
13 from hypothesis.strategies import lists
14
15 from tests.common import standard_types
16 from tests.common.debug import check_can_generate_examples
17
18
19 @pytest.mark.parametrize("spec", standard_types, ids=repr)
20 def test_single_example(spec):
21 check_can_generate_examples(spec)
22
23
24 @pytest.mark.parametrize("spec", standard_types, ids=repr)
25 def test_list_example(spec):
26 check_can_generate_examples(lists(spec))