Skip to content

Upgrading hypothesis 0.6 to 0.7

Unknown0.6.0 → 0.7.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.

  • removed: export Exhausted
  • removed: export Flaky
  • removed: export MappedSearchStrategy
  • removed: export Unfalsifiable
  • removed: export Unsatisfiable
  • removed: export Verifier
  • added: export Settings
  • removed: class UniqueIdentifier(object)
  • removed: constructor UniqueIdentifier(identifier)
  • removed: variable not_set
  • added: function assume(condition)
  • added: function given(*generator_arguments, **generator_kwargs)
  • added: variable HypothesisProvided
  • removed: export HashItAnyway
  • removed: export Tracker
  • removed: export nice_string
  • changed: constructor Storage(backend, descriptor, strategy, format, database) → constructor Storage(backend, specifier, strategy, format, database)
  • changed: method ExampleDatabase.storage_for(descriptor) → method ExampleDatabase.storage_for(specifier)
  • added: export show
  • added: method ExampleDatabase.close()
  • added: method SQLiteBackend.close()
  • added: method SQLiteBackend.connection()
  • added: method SQLiteBackend.cursor()
  • removed: function floats_in_range(start, end)
  • removed: function integers_in_range(start, end)
  • removed: function one_of(args)
  • removed: function sampled_from(elements)
  • removed: variable FloatRange
  • removed: variable IntegerRange
  • removed: variable Just
  • removed: variable OneOf
  • removed: variable SampledFrom
  • removed: variable just
  • removed: class TemplatesStrategy(SearchStrategy)
  • removed: constructor TemplatesStrategy(base_strategy)
  • removed: function descriptor_test_suite(descriptor, max_examples=…, random=…)
  • removed: function templates_for(descriptor, settings)
  • removed: method TemplatesStrategy.from_basic(data)
  • removed: method TemplatesStrategy.produce_parameter(random)
  • removed: method TemplatesStrategy.produce_template(context, pv)
  • removed: method TemplatesStrategy.reify(template)
  • removed: method TemplatesStrategy.simplify(template)
  • removed: method TemplatesStrategy.to_basic(template)
  • removed: variable TemplatesFor
  • added: class BadData(HypothesisException, ValueError)
  • added: class Exhausted(Unfalsifiable)
  • added: class Flaky(HypothesisException)
  • added: class HypothesisException(Exception)
  • added: class Timeout(Unsatisfiable)
  • added: class Unfalsifiable(HypothesisException)
  • added: class Unsatisfiable(HypothesisException)
  • added: class UnsatisfiedAssumption(HypothesisException)
  • added: class WrongFormat(HypothesisException, ValueError)
  • added: constructor Exhausted(hypothesis, n_examples)
  • added: constructor Flaky(hypothesis, example)
  • added: constructor Unfalsifiable(hypothesis, extra=…)
  • added: constructor Unsatisfiable(hypothesis, examples, run_time)
  • added: constructor UnsatisfiedAssumption()
  • removed: class ParameterSource(object)
  • removed: constructor ParameterSource(context, strategy, min_parameters=…, min_tries=…)
  • removed: method ParameterSource.draw_parameter_score(i)
  • removed: method ParameterSource.examples()
  • removed: method ParameterSource.mark_bad()
  • removed: method ParameterSource.new_parameter()
  • removed: method ParameterSource.pick_a_parameter()
  • removed: class ExtMethod(object)
  • removed: constructor ExtMethod()
  • removed: method ExtMethod.extend(typ)
  • removed: method ExtMethod.extend_static(typ)
  • removed: class DynamicVariable(object)
  • removed: constructor DynamicVariable(default)
  • removed: method DynamicVariable.with_value(value)
  • removed: property DynamicVariable.value
  • added: class ParameterSource(object)
  • added: constructor ParameterSource(context, strategy, min_parameters=…, min_tries=…)
  • added: method ParameterSource.draw_parameter_score(i)
  • added: method ParameterSource.examples()
  • added: method ParameterSource.mark_bad()
  • added: method ParameterSource.new_parameter()
  • added: method ParameterSource.pick_a_parameter()
  • removed: function hypothesis_home_dir()
  • removed: function mkdir_p(path)
  • removed: function set_hypothesis_home_dir(directory)
  • removed: function storage_directory(name)
  • removed: class Equality(ExtMethod)
  • removed: class IdKey(object)
  • removed: class IdentitySet(object)
  • removed: class NiceString(ExtMethod)
  • removed: constructor IdKey(value)
  • removed: constructor IdentitySet()
  • removed: function actually_equal(x, y, fuzzy=…)
  • removed: function actually_in(x, ys, fuzzy=…)
  • removed: function binary_string(value, seen)
  • removed: function complex_equal(x, y, fuzzy=…)
  • removed: function complex_string(x, seen)
  • removed: function dict_equal(x, y, fuzzy=…)
  • removed: function dict_string(value, seen)
  • removed: function float_equal(x, y, fuzzy=…)
  • removed: function float_string(value, seen)
  • removed: function frozenset_string(value, seen)
  • removed: function generic_equal(x, y, fuzzy)
  • removed: function generic_string(value, seen)
  • removed: function int_string(value, seen)
  • removed: function is_nasty_float(x)
  • removed: function list_string(value, seen)
  • removed: function primitive_equal(x, y, fuzzy)
  • removed: function real_index(value, y, fuzzy=…)
  • removed: function repr_string(value, seen)
  • removed: function sequence_equal(x, y, fuzzy=…)
  • removed: function set_equal(x, y, fuzzy=…)
  • removed: function set_string(value, seen)
  • removed: function test_string(value, seen)
  • removed: function text_string(value, seen)
  • removed: function tuple_string(value, seen)
  • removed: function type_string(value, seen)
  • removed: method IdentitySet.add(value)
  • removed: method IdentitySet.remove(value)
  • removed: variable equal
  • removed: variable nice_string
  • removed: variable primitives
  • removed: class HashItAnyway(object)
  • removed: constructor HashItAnyway(wrapped)
  • removed: function dict_hash(x)
  • removed: function generic_hash(x)
  • removed: function normal_hash(x)
  • removed: function type_hash(x)
  • removed: variable hash_everything
  • added: function flatten(x)
  • added: function object_to_tracking_key(o)
  • added: class Verifier(object)
  • added: constructor Verifier(random=…, settings=…)
  • added: method Verifier.falsify(hypothesis, *argument_types, **kwargs)
  • removed: export BadData
  • removed: export BuildContext
  • removed: export MappedSearchStrategy
  • removed: export check_data_type
  • removed: export check_length
  • removed: method FrozenSetStrategy.pack(x)
  • removed: method ListStrategy.decompose(value)
  • removed: method SetStrategy.decompose(value)
  • removed: method TupleStrategy.decompose(value)
  • changed: function define_dict_strategy(descriptor, settings) → function define_dict_strategy(specifier, settings)
  • changed: function define_frozen_set_strategy(descriptor, settings) → function define_frozen_set_strategy(specifier, settings)
  • changed: function define_list_strategy(descriptor, settings) → function define_list_strategy(specifier, settings)
  • changed: function define_set_strategy(descriptor, settings) → function define_set_strategy(specifier, settings)
  • changed: function define_tuple_strategy(descriptor, settings) → function define_tuple_strategy(specifier, settings)
  • removed: field BoolStrategy.descriptor
  • removed: field RandomStrategy.descriptor
  • changed: constructor SampledFromStrategy(elements, descriptor=…) → constructor SampledFromStrategy(elements)
  • changed: function define_just_strategy(descriptor, settings) → function define_just_strategy(specifier, settings)
  • changed: function define_none_strategy(descriptor, settings) → function define_none_strategy(specifier, settings)
  • changed: function define_random_strategy(descriptor, settings) → function define_random_strategy(specifier, settings)
  • changed: function define_sampled_strategy(descriptor, settings) → function define_sampled_strategy(specifier, settings)
  • added: method BoolStrategy.reify(value)
  • added: method JustStrategy.reify(template)
  • changed: constructor NAryTreeStrategy(descriptor, settings) → constructor NAryTreeStrategy(specifier, settings)
  • changed: function nary_tree_strategy(descriptor, settings) → function nary_tree_strategy(specifier, settings)
  • removed: field FixedBoundedFloatStrategy.descriptor
  • removed: field FloatStrategy.descriptor
  • removed: field IntStrategy.descriptor
  • changed: function define_complex_strategy(descriptor, settings) → function define_complex_strategy(specifier, settings)
  • changed: function define_float_strategy(descriptor, settings) → function define_float_strategy(specifier, settings)
  • changed: function define_stragy_for_integer_Range(descriptor, settings) → function define_stragy_for_integer_Range(specifier, settings)
  • changed: function define_strategy_for_float_Range(descriptor, settings) → function define_strategy_for_float_Range(specifier, settings)
  • changed: function int_strategy(descriptor, settings) → function int_strategy(specifier, settings)
  • added: method BoundedIntStrategy.reify(value)
  • added: method FloatStrategy.reify(value)
  • added: method IntStrategy.reify(template)
  • added: method NastyFloats.reify(value)
  • removed: class BadData(ValueError)
  • removed: class WrongFormat(ValueError)
  • removed: field SearchStrategy.descriptor
  • removed: method BuildContext.add_example(strategy, example)
  • removed: method BuildContext.examples_for(strategy)
  • removed: method MappedSearchStrategy.decompose(value)
  • removed: method OneOfStrategy.decompose(value)
  • removed: method SearchStrategy.decompose(value)
  • changed: constructor MappedSearchStrategy(descriptor, strategy) → constructor MappedSearchStrategy(strategy, pack=…)
  • changed: method SearchStrategy.reify(value) → method SearchStrategy.reify(template)
  • changed: method SearchStrategy.simplify(value) → method SearchStrategy.simplify(template)
  • added: method SearchStrategy.example()
  • added: method SearchStrategy.map(pack)
  • added: method SearchStrategy.size(template)
  • removed: field OneCharStringStrategy.descriptor
  • removed: method BinaryStringStrategy.decompose(value)
  • removed: method StringStrategy.decompose(value)
  • changed: function define_binary_strategy(descriptor, settings) → function define_binary_strategy(specifier, settings)
  • changed: function define_text_type_strategy(descriptor, settings) → function define_text_type_strategy(specifier, settings)
  • added: field OneCharStringStrategy.specifier
  • added: method OneCharStringStrategy.reify(value)
  • removed: function define_setting(name, description, default)
  • removed: variable DATABASE_OVERRIDE
  • removed: variable default
  • added: class DefaultSettings(object)
  • added: class SettingsProperty(object)
  • added: constructor SettingsProperty(name)
  • added: field Settings.default
  • added: function field_name(setting_name)
  • added: function get_class(obj, typ)
  • added: function hypothesis_home_dir()
  • added: function mkdir_p(path)
  • added: function set_hypothesis_home_dir(directory)
  • added: function storage_directory(name)
  • added: method Settings.defaults_stack()
  • added: property Settings.database
  • added: static method Settings.define_setting(name, description, default)
  • added: variable databases
  • 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
  • added: class TemplatesStrategy(SearchStrategy)
  • added: constructor TemplatesStrategy(base_strategy)
  • added: function strategy_test_suite(specifier, max_examples=…, random=…)
  • added: function templates_for(specifier, settings)
  • added: method TemplatesStrategy.from_basic(data)
  • added: method TemplatesStrategy.produce_parameter(random)
  • added: method TemplatesStrategy.produce_template(context, pv)
  • added: method TemplatesStrategy.reify(template)
  • added: method TemplatesStrategy.simplify(template)
  • added: method TemplatesStrategy.to_basic(template)
  • added: variable TemplatesFor
  • removed: function given(*generator_arguments, **generator_kwargs)
  • removed: variable HypothesisProvided
  • added: class UniqueIdentifier(object)
  • added: constructor UniqueIdentifier(identifier)
  • added: variable not_set
  • added: class DynamicVariable(object)
  • added: constructor DynamicVariable(default)
  • added: method DynamicVariable.with_value(value)
  • added: property DynamicVariable.value
  • added: class ExtMethod(object)
  • added: constructor ExtMethod()
  • added: method ExtMethod.extend(typ)
  • added: method ExtMethod.extend_static(typ)
  • added: class IdKey(object)
  • added: class IdentitySet(object)
  • added: constructor IdKey(value)
  • added: constructor IdentitySet()
  • added: method IdentitySet.add(value)
  • added: method IdentitySet.remove(value)
  • added: class Show(ExtMethod)
  • added: function binary_string(value, seen)
  • added: function complex_string(x, seen)
  • added: function dict_string(value, seen)
  • added: function float_string(value, seen)
  • added: function frozenset_string(value, seen)
  • added: function generic_string(value, seen)
  • added: function int_string(value, seen)
  • added: function is_nasty_float(x)
  • added: function list_string(value, seen)
  • added: function repr_string(value, seen)
  • added: function set_string(value, seen)
  • added: function test_string(value, seen)
  • added: function text_string(value, seen)
  • added: function tuple_string(value, seen)
  • added: function type_string(value, seen)
  • added: variable show
  • removed: class Exhausted(Unfalsifiable)
  • removed: class Flaky(HypothesisException)
  • removed: class HypothesisException(Exception)
  • removed: class Timeout(Unsatisfiable)
  • removed: class Unfalsifiable(HypothesisException)
  • removed: class Unsatisfiable(HypothesisException)
  • removed: class UnsatisfiedAssumption(HypothesisException)
  • removed: class Verifier(object)
  • removed: constructor Exhausted(hypothesis, n_examples)
  • removed: constructor Flaky(hypothesis, example)
  • removed: constructor Unfalsifiable(hypothesis, extra=…)
  • removed: constructor Unsatisfiable(hypothesis, examples, run_time)
  • removed: constructor UnsatisfiedAssumption()
  • removed: constructor Verifier(random=…, settings=…)
  • removed: function assume(condition)
  • removed: method Verifier.falsify(hypothesis, *argument_types, **kwargs)