Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HypothesisWorks/hypothesis
/ functions
Functions
6,299 in github.com/HypothesisWorks/hypothesis
⨍
Functions
6,299
◇
Types & classes
723
↳
Endpoints
134
↓ 3 callers
Method
__init__
(self, testcounter: int)
hypothesis/src/hypothesis/errors.py:311
↓ 3 callers
Method
__init__
(self, min_value, max_value, timezones_strat)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:586
↓ 3 callers
Method
__init__
( self, elements: SearchStrategy[Ex], min_size: int = 0, max_size: float | int
hypothesis/src/hypothesis/strategies/_internal/collections.py:168
↓ 3 callers
Method
__init__
(self, field_count=5, **kwargs)
hypothesis/tests/django/toystore/forms.py:84
↓ 3 callers
Method
__underlying_index
(self, i: int)
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:248
↓ 3 callers
Method
_broadcast_change
Called when a value has been either added to or deleted from a key in the underlying database store. The possible values for ``event`
hypothesis/src/hypothesis/database.py:314
↓ 3 callers
Function
_callbacks
()
hypothesis/tests/cover/test_observability.py:631
↓ 3 callers
Function
_choice_to_json
(choice: ChoiceT | None)
hypothesis/src/hypothesis/internal/observability.py:85
↓ 3 callers
Function
_comparator_bound
Return ``(op, bound)`` for filter conditions like ``partial(op, bound)``, with a single positional argument to one of the five comparison operator
hypothesis/src/hypothesis/strategies/_internal/datetime.py:51
↓ 3 callers
Function
_db_for_path
( path: StrPathT | UniqueIdentifier | Literal[":memory:"] | None = None, )
hypothesis/src/hypothesis/database.py:85
↓ 3 callers
Function
_decode_choice
(value)
hypothesis/tests/cover/test_observability.py:418
↓ 3 callers
Method
_draw_bits
(self, n)
hypothesis/src/hypothesis/internal/conjecture/providers.py:1122
↓ 3 callers
Function
_draw_valid_bounds
(data, shape, max_dims, *, permit_none=True)
hypothesis/tests/numpy/test_gen_data.py:592
↓ 3 callers
Method
_ensure_thread
(self)
hypothesis/src/hypothesis/database.py:1179
↓ 3 callers
Function
_findall_from_root
(junit_xml, path)
hypothesis/tests/pytest/test_junit.py:37
↓ 3 callers
Function
_from_type
(thing: type[Ex])
hypothesis/src/hypothesis/strategies/_internal/core.py:1332
↓ 3 callers
Function
_hypothesis_parse_gufunc_signature
(signature)
hypothesis/src/hypothesis/extra/_array_helpers.py:301
↓ 3 callers
Method
_initialize_db
(self)
hypothesis/src/hypothesis/database.py:989
↓ 3 callers
Function
_narrowed_bounds
Narrow [min_value, max_value] to satisfy the condition ``func(arg, x)``. ``shift(value, steps)`` moves value by that many of the smallest represe
hypothesis/src/hypothesis/strategies/_internal/datetime.py:64
↓ 3 callers
Method
_note_deprecation
(self)
hypothesis/src/hypothesis/internal/observability.py:361
↓ 3 callers
Function
_position_to_float
Inverse of :func:`_float_to_position` on the integer-valued range. Always returns an integer-valued, non-negative float.
hypothesis/src/hypothesis/internal/conjecture/shrinking/floats.py:38
↓ 3 callers
Function
_rule_qualname
(f: Any)
hypothesis/src/hypothesis/stateful.py:808
↓ 3 callers
Function
_strip_typevars
(type_)
hypothesis/src/hypothesis/extra/ghostwriter.py:246
↓ 3 callers
Function
_timezones_kind
Classify the values a timezones= strategy can generate: "none" if only None, "aware" if only tzinfo instances, or "unknown" if we can't tell.
hypothesis/src/hypothesis/strategies/_internal/datetime.py:92
↓ 3 callers
Method
_transform
( self, # https://github.com/python/mypy/issues/7049, we're not writing `element` # an
hypothesis/src/hypothesis/strategies/_internal/strategies.py:713
↓ 3 callers
Function
_try_inline_lambda
Helper: run _try_inline_lambda and return the printer output, or None.
hypothesis/tests/cover/test_lambda_inlining.py:18
↓ 3 callers
Function
_valid_syntax_repr
(strategy)
hypothesis/src/hypothesis/extra/ghostwriter.py:667
↓ 3 callers
Function
_validate_enum_value
(cls: Any, value: object, *, name: str)
hypothesis/src/hypothesis/_settings.py:426
↓ 3 callers
Method
_value_path
(self, key: bytes, value: bytes)
hypothesis/src/hypothesis/database.py:476
↓ 3 callers
Function
a
(x)
hypothesis/tests/cover/test_health_checks.py:126
↓ 3 callers
Function
array_shapes
Return a strategy for array shapes (tuples of int >= 1). * ``min_dims`` is the smallest length that the generated shape can possess. * ``max_
hypothesis/src/hypothesis/extra/_array_helpers.py:93
↓ 3 callers
Function
assert_runs_to_output
(TestClass, output)
hypothesis/tests/nocover/test_stateful.py:41
↓ 3 callers
Function
badly_draw_lists
(draw, m=0)
hypothesis/tests/cover/test_composite.py:27
↓ 3 callers
Function
bits_to_bytes
The number of bytes required to represent an n-bit number. Equivalent to (n + 7) // 8, but slightly faster. This really is called enough times
hypothesis/src/hypothesis/internal/conjecture/junkdrawer.py:523
↓ 3 callers
Function
bump_version_info
(version_info, release_type)
tooling/src/hypothesistooling/release.py:101
↓ 3 callers
Function
calc_label_from_callable
(f: Callable)
hypothesis/src/hypothesis/internal/conjecture/utils.py:39
↓ 3 callers
Method
cdf
(self, x: float)
hypothesis/src/hypothesis/internal/statistics.py:130
↓ 3 callers
Function
check
()
hypothesis/tests/nocover/test_threading.py:175
↓ 3 callers
Method
check_exhausted
Recalculates is_exhausted if necessary, and then returns it. A node is exhausted if: - Its transition is Conclusion or Kille
hypothesis/src/hypothesis/internal/conjecture/datatree.py:477
↓ 3 callers
Function
check_valid_integer
Checks that value is either unspecified, or a valid integer. Otherwise raises InvalidArgument.
hypothesis/src/hypothesis/internal/validation.py:41
↓ 3 callers
Function
choice_count
(choices: Sequence[ChoiceT | ChoiceTemplate])
hypothesis/src/hypothesis/internal/conjecture/engine.py:237
↓ 3 callers
Method
choices
(self)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:961
↓ 3 callers
Method
conclude_test
( self, status: Status, interesting_origin: InterestingOrigin | None = None, )
hypothesis/src/hypothesis/internal/conjecture/data.py:1344
↓ 3 callers
Function
consumes
When introducing a rule in a RuleBasedStateMachine, this function can be used to mark bundles from which each value used in a step with the gi
hypothesis/src/hypothesis/stateful.py:725
↓ 3 callers
Function
convert_kwargs
(name, kwargs)
hypothesis/src/hypothesis/strategies/_internal/random.py:356
↓ 3 callers
Function
current_version
()
tooling/src/hypothesistooling/release.py:355
↓ 3 callers
Function
datetime_does_not_exist
This function tests whether the given datetime can be round-tripped to and from UTC. It is an exact inverse of (and very similar to) the dateutil
hypothesis/src/hypothesis/strategies/_internal/datetime.py:155
↓ 3 callers
Method
debug
(self, *args: object)
hypothesis/src/hypothesis/internal/conjecture/shrinking/common.py:78
↓ 3 callers
Function
deferred
A deferred strategy allows you to write a strategy that references other strategies that have not yet been defined. This allows for the easy d
hypothesis/src/hypothesis/strategies/_internal/core.py:2587
↓ 3 callers
Function
do_conversion_test
(f, args, kwargs)
hypothesis/tests/cover/test_reflection.py:50
↓ 3 callers
Method
draw_string
( self, intervals: IntervalSet, *, min_size: int = 0, max_size: int =
hypothesis/tests/conjecture/test_provider.py:146
↓ 3 callers
Function
e
(a, *args, **kwargs)
hypothesis/tests/common/arguments.py:17
↓ 3 callers
Function
elements_and_dtype
(elements, dtype, source=None)
hypothesis/src/hypothesis/extra/pandas/impl.py:57
↓ 3 callers
Method
exit_with
(self, reason: ExitReason)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1107
↓ 3 callers
Function
extract_bits
(x: int, /, width: int | None = None)
hypothesis/src/hypothesis/internal/compat.py:220
↓ 3 callers
Function
f
(x)
hypothesis/tests/nocover/test_regressions.py:27
↓ 3 callers
Function
f
()
hypothesis/tests/cover/test_random_module.py:237
↓ 3 callers
Function
f
(x)
hypothesis/tests/cover/test_reporting.py:37
↓ 3 callers
Function
f
(u, v)
hypothesis/tests/cover/test_testdecorators.py:439
↓ 3 callers
Function
f1
(n)
hypothesis/tests/nocover/test_randomization.py:36
↓ 3 callers
Method
fetch
Return an iterable over all values matching this key.
hypothesis/src/hypothesis/database.py:243
↓ 3 callers
Method
fetch
(self, key)
hypothesis/tests/cover/test_phases.py:64
↓ 3 callers
Function
float_to_lex
(f: float)
hypothesis/src/hypothesis/internal/conjecture/floats.py:193
↓ 3 callers
Function
forced_or_cached_value
(target: SearchStrategy)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:114
↓ 3 callers
Function
from_dtype
Creates a strategy which can generate any value of the given dtype. Compatible parameters are passed to the inferred strategy function while
hypothesis/src/hypothesis/extra/numpy.py:127
↓ 3 callers
Function
frozensets
This is identical to the sets function but instead returns frozensets.
hypothesis/src/hypothesis/strategies/_internal/core.py:439
↓ 3 callers
Function
gc_collect
()
hypothesis/tests/cover/test_random_module.py:34
↓ 3 callers
Function
get_recorded
(name, actual="")
hypothesis/tests/ghostwriter/test_expected_output.py:56
↓ 3 callers
Function
get_reports
(file_contents, *, testdir)
hypothesis/tests/nocover/test_scrutineer.py:56
↓ 3 callers
Function
has_a_non_zero_byte
(x)
hypothesis/tests/nocover/test_database_usage.py:31
↓ 3 callers
Function
has_release
()
tooling/src/hypothesistooling/release.py:65
↓ 3 callers
Method
index_above
(self, value: int)
hypothesis/src/hypothesis/internal/intervalsets.py:112
↓ 3 callers
Method
index_from_char_in_shrink_order
Inverse of char_in_shrink_order.
hypothesis/src/hypothesis/internal/intervalsets.py:292
↓ 3 callers
Method
initial_coarse_reduction
Performs some preliminary reductions that should not be repeated as part of the main shrink passes. The main reason why these can't b
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:714
↓ 3 callers
Function
is_annotated_type
(thing: object)
hypothesis/src/hypothesis/strategies/_internal/types.py:428
↓ 3 callers
Function
is_hashable
(value: object)
hypothesis/src/hypothesis/strategies/_internal/strategies.py:576
↓ 3 callers
Function
is_in_ci
()
hypothesis/src/hypothesis/_settings.py:409
↓ 3 callers
Function
key
Prefer known-FTZ modules, then top-level packages, then alphabetical.
hypothesis/src/_hypothesis_ftz_detector.py:107
↓ 3 callers
Function
lex_to_float
(i: int)
hypothesis/src/hypothesis/internal/conjecture/floats.py:176
↓ 3 callers
Function
make_report
(explanations, *, cap_lines_at=5)
hypothesis/src/hypothesis/internal/scrutineer.py:280
↓ 3 callers
Method
mark_changed
(self, i)
hypothesis/src/hypothesis/internal/conjecture/shrinker.py:1126
↓ 3 callers
Function
nodes_to_json
(nodes: tuple[ChoiceNode, ...])
hypothesis/src/hypothesis/internal/observability.py:160
↓ 3 callers
Function
non_covering_examples
(database)
hypothesis/tests/common/utils.py:156
↓ 3 callers
Function
numeric_bounds_from_validators
( field, min_value=float("-inf"), max_value=float("inf") )
hypothesis/src/hypothesis/extra/django/_fields.py:42
↓ 3 callers
Method
pareto_optimise
(self)
hypothesis/src/hypothesis/internal/conjecture/engine.py:1546
↓ 3 callers
Function
parse_release
(contents)
whole_repo_tests/whole_repo/test_release_management.py:16
↓ 3 callers
Function
prefix_selection_order
Select choices starting from ``prefix```, preferring to move left then wrapping around to the right.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:18
↓ 3 callers
Function
random_selection_order
Select choices uniformly at random.
hypothesis/src/hypothesis/internal/conjecture/shrinking/choicetree.py:38
↓ 3 callers
Method
realize
Called whenever hypothesis requires a concrete (non-symbolic) value from a potentially symbolic value. Hypothesis will not check that
hypothesis/src/hypothesis/internal/conjecture/providers.py:599
↓ 3 callers
Method
record_call
( self, obj: object, func: object, *, args: Sequence[object],
hypothesis/src/hypothesis/control.py:187
↓ 3 callers
Function
recursive
base: A strategy to start from. extend: A function which takes a strategy and returns a new strategy. min_leaves: The minimum number of elem
hypothesis/src/hypothesis/strategies/_internal/core.py:1931
↓ 3 callers
Function
recursive_property
Handle properties which may be mutually recursive among a set of strategies. These are essentially lazily cached properties, with the ability
hypothesis/src/hypothesis/strategies/_internal/strategies.py:83
↓ 3 callers
Function
regex_strategy
( regex: AnyStr | Pattern[AnyStr], fullmatch: bool, *, alphabet: SearchStrategy | None, _t
hypothesis/src/hypothesis/strategies/_internal/regex.py:259
↓ 3 callers
Function
replace_tzinfo
(value, timezone)
hypothesis/src/hypothesis/strategies/_internal/datetime.py:117
↓ 3 callers
Function
required_args
Return a set of names of required args to target that were not supplied in args or kwargs. This is used in builds() to determine which argume
hypothesis/src/hypothesis/internal/reflection.py:174
↓ 3 callers
Function
restore_profile
()
hypothesis/tests/cover/test_settings.py:67
↓ 3 callers
Function
rude
(x)
hypothesis/tests/cover/test_flakiness.py:64
↓ 3 callers
Function
run
(command, *, cwd=None, input=None)
hypothesis/tests/codemods/test_codemod_cli.py:35
↓ 3 callers
Function
safe_draw
Set up just enough of the Hypothesis machinery to use draw on a strategy.
hypothesis/tests/nocover/test_precise_shrinking.py:76
↓ 3 callers
Method
save
Save ``value`` under ``key``. If ``value`` is already present in ``key``, silently do nothing.
hypothesis/src/hypothesis/database.py:235
← previous
next →
401–500 of 6,299, ranked by callers