Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update factory-boy to 2.10.0 #410

Closed
wants to merge 1 commit into from

Conversation

pyup-bot
Copy link

There's a new version of factory-boy available.
You are currently using 2.6.0. I have updated it to 2.10.0

These links might come in handy: PyPI | Changelog | Repo

Changelog

2.10.0


Bugfix:

  • :issue:443: Don't crash when calling :meth:factory.Iterator.reset() on a brand new iterator.

New:

  • :issue:397: Allow a :class:factory.Maybe to contain a :class:~factory.PostGenerationDeclaration.
    This also applies to :class:factory.Trait, since they use a :class:factory.Maybe declaration internally.

2.9.2


Bugfix:

  • Fix declaration corruption bug when a factory defined foo__bar__baz=1 and a caller
    provided a foo__bar=x parameter at call time: this got merged into the factory's base
    declarations.

2.9.1


Bugfix:

2.9.0


This version brings massive changes to the core engine, thus reducing the number of
corner cases and weird behaviourrs.

New:

  • :issue:275: factory.fuzzy and factory.faker now use the same random seed.
  • Add :class:factory.Maybe, which chooses among two possible declarations based
    on another field's value (powers the :class:~factory.Trait feature).
  • :class:~factory.PostGenerationMethodCall only allows to pass one positional argument; use keyword arguments for
    extra parameters.

Deprecation:

  • factory.fuzzy.get_random_state is deprecated, factory.random.get_random_state should be used instead.
  • factory.fuzzy.set_random_state is deprecated, factory.random.set_random_state should be used instead.
  • factory.fuzzy.reseed_random is deprecated, factory.random.reseed_random should be used instead.

2.8.1


Bugfix:

  • Fix packaging issues.

2.8.0


New:

  • :issue:240: Call post-generation declarations in the order they were declared,
    thanks to Oleg Pidsadnyi <https://github.com/olegpidsadnyi>_.
  • :issue:309: Provide new options for SQLAlchemy session persistence

Bugfix:

  • :issue:334: Adjust for the package change in faker

2.7.0


New:

  • :issue:267: Add :class:factory.LazyFunction to remove unneeded lambda parameters,
    thanks to Hervé Cauwelier <https://github.com/bors-ltd>_.
  • :issue:251: Add :ref:parameterized factories <parameters> and :class:traits <factory.Trait>
  • :issue:256, :issue:292: Improve error messages in corner cases

Removed:

  • :issue:278: Formally drop support for Python2.6

.. warning:: Version 2.7.0 moves all error classes to
factory.errors. This breaks existing import statements
for any error classes except those importing
FactoryError directly from the factory module.

2.6.1


New:

  • :issue:262: Allow optional forced flush on SQLAlchemy, courtesy of Minjung <https://github.com/Minjung>_.

Got merge conflicts? Close this PR and delete the branch. I'll create a new PR for you.

Happy merging! 🤖

@coveralls
Copy link

coveralls commented Jan 28, 2018

Coverage Status

Coverage remained the same at 70.175% when pulling 2e2ab06 on pyup-update-factory-boy-2.6.0-to-2.10.0 into 53196c1 on master.

@symroe symroe closed this Jan 30, 2018
@symroe symroe deleted the pyup-update-factory-boy-2.6.0-to-2.10.0 branch June 27, 2018 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants