Skip to content

Upgrading hypothesis 0.2 to 0.3

Unknown0.2.2 → 0.3.2

Fetching 3 releases from GitHub…0 / 3
UnknownUpgrade verdict

DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.

  • DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
  • This page updates as the notes come in.
Still reading release notes

DepDelta is still reading the release notes in this range. This updates as they come in.

Generated by DepDelta from published Python source. Not mixed with prose notes.

  • added: export Flaky
  • added: export Unsatisfiable
  • added: export given
  • added: function floats_in_range(start, end)
  • added: function integers_in_range(start, end)
  • added: function one_of(args)
  • added: function sampled_from(elements)
  • added: variable FloatRange
  • added: variable IntegerRange
  • added: variable Just
  • added: variable OneOf
  • added: variable SampledFrom
  • added: variable just
  • removed: class Flags(object)
  • removed: constructor Flags(flags=…)
  • removed: method Flags.enabled(flag)
  • removed: method Flags.with_disabled(*flags)
  • removed: method Flags.with_enabled(*flags)
  • removed: class HashItAnyway(object)
  • removed: constructor HashItAnyway(wrapped)
  • removed: function hash_everything(l)
  • added: class MissingSpecification(Exception)
  • added: class NextInChain(Exception)
  • added: class SpecificationMapper(object)
  • added: constructor MissingSpecification(descriptor)
  • added: constructor NextInChain()
  • added: constructor SpecificationMapper(prototype=…)
  • added: function next_in_chain()
  • added: function safe_in(x, ys)
  • added: function sort_in_subclass_order(xs, get_class=…)
  • added: function typekey(x)
  • added: method SpecificationMapper.define_specification_for(value, specification)
  • added: method SpecificationMapper.define_specification_for_classes(specification, subclasses_of=…)
  • added: method SpecificationMapper.define_specification_for_instances(cls, specification)
  • added: method SpecificationMapper.has_specification_for(descriptor)
  • added: method SpecificationMapper.missing_specification(descriptor)
  • added: method SpecificationMapper.new_child_mapper()
  • added: method SpecificationMapper.prototype()
  • added: method SpecificationMapper.specification_for(descriptor)
  • added: static method SpecificationMapper.default()
  • added: class Tracker(object)
  • added: constructor Tracker()
  • added: method Tracker.track(x)
  • added: function memoized(f)
  • added: function biased_coin(random, p)
  • added: function geometric(random, p)
  • added: class HashItAnyway(object)
  • added: constructor HashItAnyway(wrapped)
  • added: function hash_everything(l)
  • added: function args_for_lambda_ast(l)
  • added: function convert_keyword_arguments(function, args, kwargs)
  • added: function extract_all_lambdas(tree)
  • added: function extract_lambda_source(f)
  • added: function find_offset(string, line, column)
  • added: function function_digest(function)
  • added: function get_pretty_function_description(f)
  • added: variable ARG_NAME_ATTRIBUTE
  • added: variable PROBABLY_A_COMMENT
  • added: variable WHITESPACE
  • added: class BetaFloatParameter(Parameter)
  • added: class BiasedCoin(Parameter)
  • added: class CompositeParameter(Parameter)
  • added: class DictParameter(Parameter)
  • added: class ExponentialParameter(Parameter)
  • added: class GammaParameter(Parameter)
  • added: class NonEmptySubset(Parameter)
  • added: class NormalParameter(Parameter)
  • added: class Parameter(object)
  • added: class UniformFloatParameter(Parameter)
  • added: constructor BetaFloatParameter(alpha, beta)
  • added: constructor BiasedCoin(p)
  • added: constructor CompositeParameter(*args, **kwargs)
  • added: constructor DictParameter(dict_of_parameters)
  • added: constructor ExponentialParameter(lambd)
  • added: constructor GammaParameter(alpha, beta)
  • added: constructor NonEmptySubset(elements, activation_chance=…)
  • added: constructor NormalParameter(mean, variance)
  • added: constructor Parameter()
  • added: constructor UniformFloatParameter(lower_bound, upper_bound)
  • added: method BetaFloatParameter.draw(random)
  • added: method BiasedCoin.draw(random)
  • added: method CompositeParameter.draw(random)
  • added: method DictParameter.draw(random)
  • added: method ExponentialParameter.draw(random)
  • added: method GammaParameter.draw(random)
  • added: method NonEmptySubset.draw(random)
  • added: method NormalParameter.draw(random)
  • added: method Parameter.draw(random)
  • added: method UniformFloatParameter.draw(random)
  • removed: class SearchStrategies(SpecificationMapper)
  • removed: field BinaryStringStrategy.base_descriptor
  • removed: function arbitrary_int()
  • removed: function geometric_int(p)
  • removed: function geometric_probability_for_entropy(desired_entropy)
  • removed: function h(p)
  • removed: function inverse_h(hd)
  • removed: function one_of(args)
  • removed: function strategy_for(typ)
  • removed: function strategy_for_instances(typ)
  • removed: method BoolStrategy.complexity(x)
  • removed: method ComplexStrategy.pack(x)
  • removed: method ComplexStrategy.unpack(x)
  • removed: method FixedKeysDictStrategy.child_strategies()
  • removed: method FixedKeysDictStrategy.complexity(x)
  • removed: method FloatStrategy.complexity(x)
  • removed: method FloatStrategy.own_flags()
  • removed: method FloatStrategy.produce(size, flags)
  • removed: method IntStrategy.complexity(value)
  • removed: method IntStrategy.own_flags()
  • removed: method IntStrategy.produce(size, flags)
  • removed: method ListStrategy.child_strategies()
  • removed: method ListStrategy.entropy_allocated_for_length(size)
  • removed: method ListStrategy.own_flags()
  • removed: method MappedSearchStrategy.child_strategies()
  • removed: method MappedSearchStrategy.complexity(x)
  • removed: method OneCharStringStrategy.complexity(x)
  • removed: method OneOfStrategy.child_strategies()
  • removed: method OneOfStrategy.complexity(x)
  • removed: method OneOfStrategy.find_first_strategy(x)
  • removed: method OneOfStrategy.how_many_elements_to_pick(size)
  • removed: method OneOfStrategy.own_flags()
  • removed: method SearchStrategies.missing_specification(descriptor)
  • removed: method SearchStrategies.strategy(descriptor, **kwargs)
  • removed: method SearchStrategy.add_flags_to(s, history=…)
  • removed: method SearchStrategy.all_child_strategies()
  • removed: method SearchStrategy.child_strategies()
  • removed: method SearchStrategy.complexity(value)
  • removed: method SearchStrategy.flags()
  • removed: method SearchStrategy.may_call_self_recursively()
  • removed: method SearchStrategy.own_flags()
  • removed: method SearchStrategy.personal_flag(flag)
  • removed: method TupleStrategy.child_strategies()
  • removed: method TupleStrategy.complexity(xs)
  • removed: variable Just
  • removed: variable OneOf
  • removed: variable entropy_to_geom_cache
  • removed: variable just
  • changed: class ComplexStrategy(MappedSearchStrategy) → class ComplexStrategy(SearchStrategy)
  • changed: constructor ComplexStrategy(strategies, descriptor, **kwargs) → constructor ComplexStrategy(float_strategy)
  • changed: constructor FixedKeysDictStrategy(strategies, descriptor, **kwargs) → constructor FixedKeysDictStrategy(strategy_dict)
  • changed: constructor FloatStrategy(strategies, descriptor, **kwargs) → constructor FloatStrategy()
  • changed: constructor ListStrategy(strategies, descriptor, **kwargs) → constructor ListStrategy(strategies, average_length=…)
  • changed: constructor MappedSearchStrategy(strategies, descriptor, **kwargs) → constructor MappedSearchStrategy(descriptor, strategy)
  • changed: constructor OneCharStringStrategy(strategies, descriptor, **kwargs) → constructor OneCharStringStrategy(characters=…)
  • changed: constructor OneOfStrategy(strategies, descriptor, **kwargs) → constructor OneOfStrategy(strategies)
  • changed: constructor SearchStrategy(strategies, descriptor) → constructor SearchStrategy()
  • changed: constructor SetStrategy(strategies, descriptor, **kwargs) → constructor SetStrategy(list_strategy)
  • changed: constructor StringStrategy(strategies, descriptor, **kwargs) → constructor StringStrategy(list_of_one_char_strings_strategy)
  • changed: constructor TupleStrategy(strategies, descriptor, **kwargs) → constructor TupleStrategy(strategies, tuple_type)
  • changed: function nice_string(xs, history=…) → function nice_string(xs)
  • changed: method BoolStrategy.produce(size, flags) → method BoolStrategy.produce(random, p)
  • changed: method FixedKeysDictStrategy.produce(size, flags) → method FixedKeysDictStrategy.produce(random, pv)
  • changed: method JustStrategy.produce(size, flags) → method JustStrategy.produce(random, pv)
  • changed: method ListStrategy.produce(size, flags) → method ListStrategy.produce(random, pv)
  • changed: method MappedSearchStrategy.produce(size, flags) → method MappedSearchStrategy.produce(random, pv)
  • changed: method OneCharStringStrategy.produce(size, flags) → method OneCharStringStrategy.produce(random, pv)
  • changed: method OneOfStrategy.produce(size, flags) → method OneOfStrategy.produce(random, pv)
  • changed: method SearchStrategy.produce(size, flags) → method SearchStrategy.produce(random, parameter_value)
  • changed: method TupleStrategy.produce(size, flags) → method TupleStrategy.produce(random, pv)
  • added: class BoundedFloatStrategy(FloatStrategy)
  • added: class BoundedIntStrategy(SearchStrategy)
  • added: class ExponentialFloatStrategy(FloatStrategy)
  • added: class FixedBoundedFloatStrategy(SearchStrategy)
  • added: class FrozenSetStrategy(MappedSearchStrategy)
  • added: class GaussianFloatStrategy(FloatStrategy)
  • added: class RandomGeometricIntStrategy(IntStrategy)
  • added: class RandomStrategy(SearchStrategy)
  • added: class RandomWithSeed(r.Random)
  • added: class SampledFromStrategy(SearchStrategy)
  • added: constructor BoundedFloatStrategy()
  • added: constructor BoundedIntStrategy(start, end)
  • added: constructor FixedBoundedFloatStrategy(lower_bound, upper_bound)
  • added: constructor FrozenSetStrategy(list_strategy)
  • added: constructor JustStrategy(value)
  • added: constructor RandomWithSeed(seed)
  • added: constructor SampledFromStrategy(elements)
  • added: field BoolStrategy.descriptor
  • added: field BoolStrategy.parameter
  • added: field BoundedIntStrategy.descriptor
  • added: field BoundedIntStrategy.parameter
  • added: field ComplexStrategy.descriptor
  • added: field ExponentialFloatStrategy.parameter
  • added: field FixedBoundedFloatStrategy.descriptor
  • added: field FixedBoundedFloatStrategy.parameter
  • added: field FixedKeysDictStrategy.has_immutable_data
  • added: field FloatStrategy.descriptor
  • added: field GaussianFloatStrategy.parameter
  • added: field IntStrategy.descriptor
  • added: field JustStrategy.has_immutable_data
  • added: field JustStrategy.parameter
  • added: field ListStrategy.has_immutable_data
  • added: field OneCharStringStrategy.descriptor
  • added: field RandomGeometricIntStrategy.parameter
  • added: field RandomStrategy.descriptor
  • added: field RandomStrategy.has_immutable_data
  • added: field RandomStrategy.parameter
  • added: field SearchStrategy.has_immutable_data
  • added: field SetStrategy.has_immutable_data
  • added: function mix_generators(*generators)
  • added: function one_of_strategies(xs)
  • added: method BoundedFloatStrategy.produce(random, pv)
  • added: method BoundedIntStrategy.produce(random, parameter)
  • added: method BoundedIntStrategy.simplify(x)
  • added: method ComplexStrategy.produce(random, pv)
  • added: method ComplexStrategy.simplify(x)
  • added: method ExponentialFloatStrategy.produce(random, pv)
  • added: method FixedBoundedFloatStrategy.produce(random, pv)
  • added: method FixedBoundedFloatStrategy.simplify(value)
  • added: method FrozenSetStrategy.pack(x)
  • added: method FrozenSetStrategy.unpack(x)
  • added: method GaussianFloatStrategy.produce(random, pv)
  • added: method IntStrategy.could_have_produced(x)
  • added: method JustStrategy.could_have_produced(value)
  • added: method RandomGeometricIntStrategy.produce(random, parameter)
  • added: method RandomStrategy.could_have_produced(value)
  • added: method RandomStrategy.produce(random, pv)
  • added: method SampledFromStrategy.could_have_produced(value)
  • added: method SampledFromStrategy.produce(random, pv)
  • added: method SearchStrategy.copy(value)
  • added: property MappedSearchStrategy.parameter
  • added: class Settings(object)
  • added: constructor Settings(min_satisfying_examples=…, max_examples=…, max_skipped_examples=…, timeout=…, derandomize=…)
  • added: variable default
  • removed: class ClassSorter(object)
  • removed: class MissingSpecification(Exception)
  • removed: class NextInChain(Exception)
  • removed: class SpecificationMapper(object)
  • removed: constructor ClassSorter(cls)
  • removed: constructor MissingSpecification(descriptor)
  • removed: constructor NextInChain()
  • removed: constructor SpecificationMapper(prototype=…)
  • removed: function next_in_chain()
  • removed: function safe_in(x, ys)
  • removed: function typekey(x)
  • removed: method SpecificationMapper.cache_specification_for_descriptor(descriptor, spec)
  • removed: method SpecificationMapper.define_specification_for(value, specification)
  • removed: method SpecificationMapper.define_specification_for_classes(specification, subclasses_of=…)
  • removed: method SpecificationMapper.define_specification_for_instances(cls, specification)
  • removed: method SpecificationMapper.missing_specification(descriptor)
  • removed: method SpecificationMapper.new_child_mapper()
  • removed: method SpecificationMapper.prototype()
  • removed: method SpecificationMapper.specification_for(descriptor)
  • removed: static method SpecificationMapper.default()
  • removed: constructor StepStrategy(strategies, descriptor, **kwargs)
  • changed: constructor StatefulStrategy(strategies, descriptor, **kwargs) → constructor StatefulStrategy(descriptor, strategy, requires_init)
  • added: function define_stateful_strategy(strategies, descriptor)
  • added: method StatefulStrategy.could_have_produced(value)
  • added: class StrategyTable(SpecificationMapper)
  • added: function convert_strategy(fn)
  • added: function define_binary_strategy(strategies, descriptor)
  • added: function define_complex_strategy(strategies, descriptor)
  • added: function define_dict_strategy(strategies, descriptor)
  • added: function define_float_strategy(strategies, descriptor)
  • added: function define_frozen_set_strategy(strategies, descriptor)
  • added: function define_just_strategy(strategies, descriptor)
  • added: function define_list_strategy(strategies, descriptor)
  • added: function define_one_of_strategy(strategies, descriptor)
  • added: function define_random_strategy(strategies, descriptor)
  • added: function define_sampled_strategy(strategies, descriptor)
  • added: function define_set_strategy(strategies, descriptor)
  • added: function define_stragy_for_integer_Range(strategies, descriptor)
  • added: function define_strategy_for_float_Range(strategies, descriptor)
  • added: function define_strategy_strategy(strategies, descriptor)
  • added: function define_text_type_strategy(strategies, descriptor)
  • added: function define_tuple_strategy(strategies, descriptor)
  • added: function strategy_for(typ)
  • added: function strategy_for_instances(typ)
  • added: method StrategyTable.strategy(descriptor)
  • removed: class Tracker(object)
  • removed: constructor Tracker()
  • removed: method Tracker.track(x)
  • removed: method Verifier.time_to_call_it_a_day()
  • changed: constructor Timeout(hypothesis, timeout) → constructor Timeout(hypothesis, satisfying_examples, run_time)
  • changed: constructor Unsatisfiable(hypothesis, examples) → constructor Unsatisfiable(hypothesis, examples, run_time)
  • changed: constructor Verifier(search_strategies=…, starting_size=…, warming_rate=…, cooling_rate=…, runs_to_explore_flags=…, min_satisfying_examples=…, max_size=…, max_failed_runs=…, timeout=…) → constructor Verifier(strategy_table=…, random=…, settings=…)
  • added: class Exhausted(Unfalsifiable)
  • added: class Flaky(HypothesisException)
  • added: constructor Exhausted(hypothesis, n_examples)
  • added: constructor Flaky(hypothesis, example)