Debian Codegraph @

hypothesis-python/docs/prolog.rst

raw
1 .. |given| replace:: :func:`~hypothesis.given`
2 .. |@given| replace:: :func:`@given <hypothesis.given>`
3 .. |@example| replace:: :func:`@example <hypothesis.example>`
4 .. |@example.xfail| replace:: :func:`@example(...).xfail() <hypothesis.example.xfail>`
5 .. |@example.via| replace:: :func:`@example(...).via() <hypothesis.example.via>`
6 .. |example.xfail| replace:: :func:`example.xfail <hypothesis.example.xfail>`
7 .. |example.via| replace:: :func:`example.via <hypothesis.example.via>`
8 .. |@settings| replace:: :func:`@settings <hypothesis.settings>`
9 .. |settings| replace:: :func:`settings <hypothesis.settings>`
10 .. |@composite| replace:: :func:`@composite <hypothesis.strategies.composite>`
11 .. |assume| replace:: :func:`~hypothesis.assume`
12 .. |target| replace:: :func:`~hypothesis.target`
13 .. |event| replace:: :func:`~hypothesis.event`
14 .. |note| replace:: :func:`~hypothesis.note`
15 .. |infer| replace:: :data:`~hypothesis.infer`
16 .. |fuzz_one_input| replace:: :func:`~hypothesis.core.HypothesisHandle.fuzz_one_input`
17
18 .. |max_examples| replace:: :obj:`~hypothesis.settings.max_examples`
19 .. |settings.max_examples| replace:: :obj:`settings.max_examples <hypothesis.settings.max_examples>`
20 .. |settings.database| replace:: :obj:`settings.database <hypothesis.settings.database>`
21 .. |settings.deadline| replace:: :obj:`settings.deadline <hypothesis.settings.deadline>`
22 .. |settings.derandomize| replace:: :obj:`settings.derandomize <hypothesis.settings.derandomize>`
23 .. |settings.phases| replace:: :obj:`settings.phases <hypothesis.settings.phases>`
24 .. |settings.print_blob| replace:: :obj:`settings.print_blob <hypothesis.settings.print_blob>`
25 .. |settings.report_multiple_bugs| replace:: :obj:`settings.report_multiple_bugs <hypothesis.settings.report_multiple_bugs>`
26 .. |settings.verbosity| replace:: :obj:`settings.verbosity <hypothesis.settings.verbosity>`
27 .. |settings.suppress_health_check| replace:: :obj:`settings.suppress_health_check <hypothesis.settings.suppress_health_check>`
28 .. |settings.stateful_step_count| replace:: :obj:`settings.stateful_step_count <hypothesis.settings.stateful_step_count>`
29 .. |settings.backend| replace:: :obj:`settings.backend <hypothesis.settings.backend>`
30
31 .. |~settings.max_examples| replace:: :obj:`~hypothesis.settings.max_examples`
32 .. |~settings.database| replace:: :obj:`~hypothesis.settings.database`
33 .. |~settings.deadline| replace:: :obj:`~hypothesis.settings.deadline`
34 .. |~settings.derandomize| replace:: :obj:`~hypothesis.settings.derandomize`
35 .. |~settings.phases| replace:: :obj:`~hypothesis.settings.phases`
36 .. |~settings.print_blob| replace:: :obj:`~hypothesis.settings.print_blob`
37 .. |~settings.report_multiple_bugs| replace:: :obj:`~hypothesis.settings.report_multiple_bugs`
38 .. |~settings.verbosity| replace:: :obj:`~hypothesis.settings.verbosity`
39 .. |~settings.suppress_health_check| replace:: :obj:`~hypothesis.settings.suppress_health_check`
40 .. |~settings.stateful_step_count| replace:: :obj:`~hypothesis.settings.stateful_step_count`
41 .. |~settings.backend| replace:: :obj:`~hypothesis.settings.backend`
42
43 .. |settings.register_profile| replace:: :func:`~hypothesis.settings.register_profile`
44 .. |settings.get_profile| replace:: :func:`~hypothesis.settings.get_profile`
45 .. |settings.load_profile| replace:: :func:`~hypothesis.settings.load_profile`
46 .. |settings.get_current_profile_name| replace:: :func:`~hypothesis.settings.get_current_profile_name`
47
48 .. |HealthCheck.data_too_large| replace:: :obj:`HealthCheck.data_too_large <hypothesis.HealthCheck.data_too_large>`
49 .. |HealthCheck.filter_too_much| replace:: :obj:`HealthCheck.filter_too_much <hypothesis.HealthCheck.filter_too_much>`
50 .. |HealthCheck.too_slow| replace:: :obj:`HealthCheck.too_slow <hypothesis.HealthCheck.too_slow>`
51 .. |HealthCheck.function_scoped_fixture| replace:: :obj:`HealthCheck.function_scoped_fixture <hypothesis.HealthCheck.function_scoped_fixture>`
52 .. |HealthCheck.differing_executors| replace:: :obj:`HealthCheck.differing_executors <hypothesis.HealthCheck.differing_executors>`
53 .. |HealthCheck| replace:: :obj:`~hypothesis.HealthCheck`
54
55 .. |Phase| replace:: :obj:`Phase <hypothesis.Phase>`
56 .. |Phase.explicit| replace:: :obj:`Phase.explicit <hypothesis.Phase.explicit>`
57 .. |Phase.reuse| replace:: :obj:`Phase.reuse <hypothesis.Phase.reuse>`
58 .. |Phase.generate| replace:: :obj:`Phase.generate <hypothesis.Phase.generate>`
59 .. |Phase.target| replace:: :obj:`Phase.target <hypothesis.Phase.target>`
60 .. |Phase.shrink| replace:: :obj:`Phase.shrink <hypothesis.Phase.shrink>`
61 .. |Phase.explain| replace:: :obj:`Phase.explain <hypothesis.Phase.explain>`
62
63 .. |Verbosity| replace:: :obj:`~hypothesis.Verbosity`
64 .. |Verbosity.verbose| replace:: :obj:`Verbosity.verbose <hypothesis.Verbosity.verbose>`
65 .. |Verbosity.debug| replace:: :obj:`Verbosity.debug <hypothesis.Verbosity.debug>`
66 .. |Verbosity.normal| replace:: :obj:`Verbosity.normal <hypothesis.Verbosity.normal>`
67 .. |Verbosity.quiet| replace:: :obj:`Verbosity.quiet <hypothesis.Verbosity.quiet>`
68
69 .. |HypothesisException| replace:: :obj:`HypothesisException <hypothesis.errors.HypothesisException>`
70 .. |HypothesisDeprecationWarning| replace:: :obj:`HypothesisDeprecationWarning <hypothesis.errors.HypothesisDeprecationWarning>`
71 .. |NonInteractiveExampleWarning| replace:: :obj:`NonInteractiveExampleWarning <hypothesis.errors.NonInteractiveExampleWarning>`
72 .. |Flaky| replace:: :obj:`Flaky <hypothesis.errors.Flaky>`
73 .. |FlakyStrategyDefinition| replace:: :obj:`FlakyStrategyDefinition <hypothesis.errors.FlakyStrategyDefinition>`
74 .. |FlakyFailure| replace:: :obj:`FlakyFailure <hypothesis.errors.FlakyFailure>`
75 .. |FlakyBackendFailure| replace:: :obj:`~hypothesis.errors.FlakyBackendFailure`
76 .. |InvalidArgument| replace:: :obj:`InvalidArgument <hypothesis.errors.InvalidArgument>`
77 .. |DidNotReproduce| replace:: :obj:`DidNotReproduce <hypothesis.errors.DidNotReproduce>`
78 .. |DeadlineExceeded| replace:: :obj:`DeadlineExceeded <hypothesis.errors.DeadlineExceeded>`
79 .. |BackendCannotProceed| replace:: :obj:`~hypothesis.errors.BackendCannotProceed`
80
81
82 .. |st.lists| replace:: :func:`~hypothesis.strategies.lists`
83 .. |st.integers| replace:: :func:`~hypothesis.strategies.integers`
84 .. |st.floats| replace:: :func:`~hypothesis.strategies.floats`
85 .. |st.booleans| replace:: :func:`~hypothesis.strategies.booleans`
86 .. |st.none| replace:: :func:`~hypothesis.strategies.none`
87 .. |st.composite| replace:: :func:`@composite <hypothesis.strategies.composite>`
88 .. |st.data| replace:: :func:`~hypothesis.strategies.data`
89 .. |st.one_of| replace:: :func:`~hypothesis.strategies.one_of`
90 .. |st.text| replace:: :func:`~hypothesis.strategies.text`
91 .. |st.characters| replace:: :func:`~hypothesis.strategies.characters`
92 .. |st.tuples| replace:: :func:`~hypothesis.strategies.tuples`
93 .. |st.sets| replace:: :func:`~hypothesis.strategies.sets`
94 .. |st.dictionaries| replace:: :func:`~hypothesis.strategies.dictionaries`
95 .. |st.fixed_dictionaries| replace:: :func:`~hypothesis.strategies.fixed_dictionaries`
96 .. |st.datetimes| replace:: :func:`~hypothesis.strategies.datetimes`
97 .. |st.builds| replace:: :func:`~hypothesis.strategies.builds`
98 .. |st.recursive| replace:: :func:`~hypothesis.strategies.recursive`
99 .. |st.deferred| replace:: :func:`~hypothesis.strategies.deferred`
100 .. |st.from_type| replace:: :func:`~hypothesis.strategies.from_type`
101 .. |st.sampled_from| replace:: :func:`~hypothesis.strategies.sampled_from`
102 .. |st.shared| replace:: :func:`~hypothesis.strategies.shared`
103 .. |st.uuids| replace:: :func:`~hypothesis.strategies.uuids`
104 .. |st.ip_addresses| replace:: :func:`~hypothesis.strategies.ip_addresses`
105 .. |st.register_type_strategy| replace:: :func:`~hypothesis.strategies.register_type_strategy`
106 .. |st.just| replace:: :func:`~hypothesis.strategies.just`
107 .. |st.from_regex| replace:: :func:`~hypothesis.strategies.from_regex`
108 .. |st.domains| replace:: :func:`~hypothesis.provisional.domains`
109 .. |st.urls| replace:: :func:`~hypothesis.provisional.urls`
110 .. |register_random| replace:: :func:`~hypothesis.register_random`
111 .. |st.register_random| replace:: :func:`~hypothesis.register_random`
112
113 .. |django.from_form| replace:: :func:`~hypothesis.extra.django.from_form`
114 .. |django.from_model| replace:: :func:`~hypothesis.extra.django.from_model`
115 .. |django.from_field| replace:: :func:`~hypothesis.extra.django.from_field`
116
117 .. |SearchStrategy| replace:: :class:`~hypothesis.strategies.SearchStrategy`
118 .. |filter| replace:: :func:`.filter() <hypothesis.strategies.SearchStrategy.filter>`
119 .. |.filter| replace:: :func:`.filter() <hypothesis.strategies.SearchStrategy.filter>`
120 .. |.filter()| replace:: :func:`.filter() <hypothesis.strategies.SearchStrategy.filter>`
121 .. |flatmap| replace:: :func:`.flatmap() <hypothesis.strategies.SearchStrategy.flatmap>`
122 .. |.flatmap| replace:: :func:`.flatmap() <hypothesis.strategies.SearchStrategy.flatmap>`
123 .. |.flatmap()| replace:: :func:`.flatmap() <hypothesis.strategies.SearchStrategy.flatmap>`
124 .. |map| replace:: :func:`.map() <hypothesis.strategies.SearchStrategy.map>`
125 .. |.map| replace:: :func:`.map() <hypothesis.strategies.SearchStrategy.map>`
126 .. |.map()| replace:: :func:`.map() <hypothesis.strategies.SearchStrategy.map>`
127 .. |.example| replace:: :func:`.example() <hypothesis.strategies.SearchStrategy.example>`
128 .. |.example()| replace:: :func:`.example() <hypothesis.strategies.SearchStrategy.example>`
129
130 .. |PrimitiveProvider| replace:: :class:`~hypothesis.internal.conjecture.providers.PrimitiveProvider`
131 .. |PrimitiveProvider.realize| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.realize`
132 .. |PrimitiveProvider.draw_integer| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.draw_integer`
133 .. |PrimitiveProvider.draw_boolean| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.draw_boolean`
134 .. |PrimitiveProvider.draw_float| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.draw_float`
135 .. |PrimitiveProvider.draw_string| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.draw_string`
136 .. |PrimitiveProvider.draw_bytes| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.draw_bytes`
137 .. |PrimitiveProvider.on_observation| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.on_observation`
138 .. |PrimitiveProvider.observe_test_case| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.observe_test_case`
139 .. |PrimitiveProvider.observe_information_messages| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.observe_information_messages`
140 .. |PrimitiveProvider.per_test_case_context_manager| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.per_test_case_context_manager`
141 .. |PrimitiveProvider.add_observability_callback| replace:: :data:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.add_observability_callback`
142 .. |PrimitiveProvider.span_start| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.span_start`
143 .. |PrimitiveProvider.span_end| replace:: :func:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.span_end`
144 .. |PrimitiveProvider.avoid_realization| replace:: :data:`~hypothesis.internal.conjecture.providers.PrimitiveProvider.avoid_realization`
145
146 .. |AVAILABLE_PROVIDERS| replace:: :data:`~hypothesis.internal.conjecture.providers.AVAILABLE_PROVIDERS`
147 .. |run_conformance_test| replace:: :func:`~hypothesis.internal.conjecture.provider_conformance.run_conformance_test`
148
149 .. |add_observability_callback| replace:: :data:`~hypothesis.internal.observability.add_observability_callback`
150 .. |remove_observability_callback| replace:: :data:`~hypothesis.internal.observability.remove_observability_callback`
151 .. |with_observability_callback| replace:: :data:`~hypothesis.internal.observability.with_observability_callback`
152 .. |observability_enabled| replace:: :data:`~hypothesis.internal.observability.observability_enabled`
153 .. |TESTCASE_CALLBACKS| replace:: :data:`~hypothesis.internal.observability.TESTCASE_CALLBACKS`
154 .. |OBSERVABILITY_CHOICES| replace:: :data:`~hypothesis.internal.observability.OBSERVABILITY_CHOICES`
155 .. |BUFFER_SIZE| replace:: :data:`~hypothesis.internal.conjecture.engine.BUFFER_SIZE`
156 .. |MAX_SHRINKS| replace:: :data:`~hypothesis.internal.conjecture.engine.MAX_SHRINKS`
157 .. |MAX_SHRINKING_SECONDS| replace:: :data:`~hypothesis.internal.conjecture.engine.MAX_SHRINKING_SECONDS`
158
159 .. |@rule| replace:: :func:`@rule <hypothesis.stateful.rule>`
160 .. |@precondition| replace:: :func:`@precondition <hypothesis.stateful.precondition>`
161 .. |@initialize| replace:: :func:`@initialize <hypothesis.stateful.initialize>`
162 .. |@invariant| replace:: :func:`@invariant <hypothesis.stateful.invariant>`
163 .. |RuleBasedStateMachine| replace:: :class:`~hypothesis.stateful.RuleBasedStateMachine`
164 .. |run_state_machine_as_test| replace:: :func:`~hypothesis.stateful.run_state_machine_as_test`
165
166 .. |@reproduce_failure| replace:: :func:`@reproduce_failure <hypothesis.reproduce_failure>`
167 .. |@seed| replace:: :func:`@seed <hypothesis.seed>`
168
169 .. |ExampleDatabase| replace:: :class:`~hypothesis.database.ExampleDatabase`
170 .. |ExampleDatabase.save| replace:: :func:`~hypothesis.database.ExampleDatabase.save`
171 .. |ExampleDatabase.delete| replace:: :func:`~hypothesis.database.ExampleDatabase.delete`
172 .. |ExampleDatabase.fetch| replace:: :func:`~hypothesis.database.ExampleDatabase.fetch`
173 .. |ExampleDatabase.move| replace:: :func:`~hypothesis.database.ExampleDatabase.move`
174 .. |ExampleDatabase.add_listener| replace:: :func:`~hypothesis.database.ExampleDatabase.add_listener`
175 .. |ExampleDatabase.remove_listener| replace:: :func:`~hypothesis.database.ExampleDatabase.remove_listener`
176 .. |ExampleDatabase.clear_listeners| replace:: :func:`~hypothesis.database.ExampleDatabase.clear_listeners`
177 .. |ExampleDatabase._start_listening| replace:: :func:`~hypothesis.database.ExampleDatabase._start_listening`
178 .. |ExampleDatabase._stop_listening| replace:: :func:`~hypothesis.database.ExampleDatabase._stop_listening`
179 .. |ExampleDatabase._broadcast_change| replace:: :func:`~hypothesis.database.ExampleDatabase._broadcast_change`
180
181 .. |DirectoryBasedExampleDatabase| replace:: :class:`~hypothesis.database.DirectoryBasedExampleDatabase`
182 .. |InMemoryExampleDatabase| replace:: :class:`~hypothesis.database.InMemoryExampleDatabase`
183 .. |ReadOnlyDatabase| replace:: :class:`~hypothesis.database.ReadOnlyDatabase`
184 .. |MultiplexedDatabase| replace:: :class:`~hypothesis.database.MultiplexedDatabase`
185 .. |GitHubArtifactDatabase| replace:: :class:`~hypothesis.database.GitHubArtifactDatabase`
186 .. |BackgroundWriteDatabase| replace:: :class:`~hypothesis.database.BackgroundWriteDatabase`
187 .. |RedisExampleDatabase| replace:: :class:`~hypothesis.extra.redis.RedisExampleDatabase`
188
189 .. |is_hypothesis_test| replace:: :func:`~hypothesis.is_hypothesis_test`
190 .. |currently_in_test_context| replace:: :func:`~hypothesis.currently_in_test_context`
191
192 .. |hypothesis-numpy| replace:: :ref:`NumPy <hypothesis-numpy>`
193 .. |hypothesis-pandas| replace:: :ref:`pandas <hypothesis-pandas>`
194 .. |hypothesis-django| replace:: :ref:`Django <hypothesis-django>`
195
196 .. |str| replace:: :obj:`python:str`
197 .. |int| replace:: :obj:`python:int`
198 .. |bool| replace:: :obj:`python:bool`
199 .. |bytes| replace:: :obj:`python:bytes`
200 .. |float| replace:: :obj:`python:float`
201 .. |assert| replace:: :keyword:`python:assert`
202 .. |memoryview| replace:: :class:`python:memoryview`
203 .. |dataclasses| replace:: :mod:`python:dataclasses`
204 .. |random.random| replace:: :class:`python:random.Random`
205 .. |random.Random| replace:: :class:`python:random.Random`
206 .. |ellipsis| replace:: :obj:`python:Ellipsis`
207 .. |Ellipsis| replace:: :obj:`python:Ellipsis`
208
209 .. |TypeAlias| replace:: :obj:`python:typing.TypeAlias`
210 .. |TypeAliasType| replace:: :class:`python:typing.TypeAliasType`
211 .. |NewType| replace:: :class:`python:typing.NewType`
212
213 .. |alternative backend| replace:: :ref:`alternative backend <alternative-backends>`
214 .. |alternative backends| replace:: :ref:`alternative backends <alternative-backends>`
215
216 .. |pytest.mark.parametrize| replace:: :ref:`pytest.mark.parametrize <pytest:pytest.mark.parametrize ref>`