Update dependency testfixtures to v11#1798
Open
k1h-renovate[bot] wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==7.0.4→==11.0.0Warning
Some dependencies could not be looked up. Check the warning logs for more information.
Release Notes
Simplistix/testfixtures (testfixtures)
v11.0.0Compare Source
Moved to a
uv__-based,pyproject.toml-driven project layout, withmainreplacingmasteras the default git branch.__ https://docs.astral.sh/uv/
Move from Circle CI to Github Actions for continuous integration and releasing.
Lots of documentation has been refreshed.
Python versions between 3.11 and 3.14, inclusive, are now supported.
Python versions 3.10 and earlier are no longer supported.
:class:
TempDiris now introduced as a :class:~pathlib.Path-based alternative to:class:
TempDirectory.:class:
TempDirand :class:TempDirectoryhave grown support for dumping and parsing JSON,YAML and TOML natively by way of the :meth:
~TempDir.dumpand :meth:TempDir.parsemethods.:class:
TempDirand :class:TempDirectorynow have :meth:~TempDir.read_textand:meth:
TempDir.read_bytesmethods that mirror the behaviour of their :class:~pathlib.Pathequivalents.
:class:
TempDirand :class:TempDirectorynow support :class:~pathlib.Pathobjects anywherethey previously supported string and sequences of strings.
:class:
TempDirand :class:TempDirectorynow have a :meth:~TempDir.clonemethod forcopying existing files or directories into themselves for using during testing.
Nonecan now be passed to :class:ShouldRaiseto check that no exception is raised.This is useful for parameterised tests where some cases may expect an exception to be raised
while others do not.
:class:
ShouldRaisenow has amatchparameter to bring feature parity with:func:
pytest.raises.:class:
Comparisonnow shows the wrong type when it is compared against a wrong type.:class:
Comparisonno longer spuriously reports:class:
~testfixtures.comparers.AlreadySeenas the wrong type.Fixed a bug where comparing parameterised generic type objects resulted in an infinite loop.
v10.0.0Compare Source
Fixed a bug in the warning issued when a :class:
Replaceris deleted with replacements stillin place.
Reworked :func:
compareoptions so that typos and the like will now resultin an exception being raised. This ended up being a breaking change if you use custom comparers
that take options as this now has a :ref:
different API <custom-comparer-options>.Reworked the :doc:
compare documentation <comparing>to explain why you should be using itas well as updating the examples and explaining more fully how to configure and customise it.
v9.2.0Compare Source
Implement :func:
like, :func:sequence, :func:contains, :func:unorderedforstrictly typed :ref:
comparisons <comparison-objects>.Correctly type :attr:
ShouldRaise.raised.v9.1.0Compare Source
StringComparisoninstances as parameters to:meth:
OutputCapture.compare.v9.0.1Compare Source
:attr:
ShouldRaise.raisedis now always an exception instance. If no exception has been raised,it will be a :class:
~testfixtures.shouldraise.NoExceptioninstance. This prevents typingcomplaints around using an attribute that might be
None.:func:
mock_timehas been reworked to return an instance of :class:~testfixtures.datetime.MockTimerather than theclass itself. :class:
~testfixtures.datetime.MockTimehas also been reworked such that it can no longer be instantiatedwith the same parameters as :class:
~datetime.datetime- this edge case was never supported,but is highlighted here in case folks were using it.
v9.0.0Compare Source
Python 3.11 is now the minimum supported version.
A
show_whitespaceparameter has been added to :class:ShouldAssert.testfixturesis now fully typed, checked withmypy__ and is distributed witha
py.typedmarker file.__ https://mypy.readthedocs.io/en/stable/
v8.3.0Compare Source
:class:
ShouldRaisenow supports :class:ExceptionGroup.Fixed bug where :func:
~testfixtures.comparison.compare_generatordid not respectstrict=True.Fixed bug in the type annotations for :class:
ShouldRaiseand:func:
~testfixtures.comparison.compare_exception.:class:
LogCapturewill now raise an exception if closed while still installed.This can be a source of particularly confusing bugs.
v8.2.0Compare Source
The
strictoption is now correctly respected when :doc:comparing <comparing>nested objects.When comparing :class:
~datetime.datetimeor :class:~datetime.timeinstances, if the foldis the only thing that's different, it's now shown in the output.
A more detailed exception is now raised when resolving a :doc:
replacement <mocking>doesn't givewhat's expected.
:doc:
Replacement <mocking>of methods on instances is now prevented whenstrict=True.An exception is now raised when :doc:
mocking <mocking>and the original is not in the__dict__of its containing objects.v8.1.0Compare Source
Fix bug where replacement of methods on subclasses failed when using :meth:
Replacer.on_class.Implement :ref:
strict comparison <compare-datetime>as an option for :class:~datetime.datetimeand :class:
~datetime.time.v8.0.0Compare Source
Retire
zope.componenthelpers.Support :class:
bytesin :class:popen.MockPopencommands.Allow :class:
TempDirectoryinstances to be traversed as :class:~pathlib.Pathobjects.Use the system default encoding where possible in :class:
TempDirectory.Add :class:
TempDirectoryoption to manage current working directory.Allow string class attributes to be replaced with :class:
Replacerand friends.Fix nasty bug meaning some :meth:
~Replacer.on_classand :meth:~Replacer.in_modulereplacements weren't restored.
Allow an alternative separator to be used for traversal during replacement with
:class:
Replacerand friends.Officially support Python 3.12.
Drop support Python 3.6.
v7.2.2Compare Source
os.PathLikearguments to :class:popen.MockPopen.v7.2.1Compare Source
os.PathLikearguments to :class:popen.MockPopen.v7.2.0Compare Source
order_mattersparameter to :class:ShouldWarn.Thanks to Jan Musílek for the implementation!
v7.1.0Compare Source
mocking <mocking>including additionalparameters to :meth:
~Replacer.replacealong with the :any:replace_on_class,:any:
replace_in_moduleand :any:replace_in_environcontext managers.Configuration
📅 Schedule: (in timezone Europe/Stockholm)
* 18-23,0-5 * * 1-5)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.