fix(deps): update dependency junitparser to v4 #306
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:
3.2.0→4.0.2Release Notes
weiwei/junitparser (junitparser)
v4.0.2Compare Source
Fixed
write_xml- now supportsPathfrompathlib.v4.0.1Compare Source
Fixed
write_xml- Remove encoding kwarg to fixbinary mode doesn't take an encoding argumentv4.0.0Compare Source
Breaking
Renamed argument
filepathof methodswrite_xml,TestSuite.write, andJUnitXml.writeto
file_or_filename, as these methods now support file objects and file-like objects.Turned positional argument
prettyof methodswrite_xml,TestSuite.write, andJUnitXml.writeinto keyword argument.Use as
write_xml(obj, filename, pretty=True)andobj.write(filename, pretty=True), respectively.Removed argument
to_consolefrom methodswrite_xml,TestSuite.write, andJUnitXml.write.Instead, use
write_xml(obj, sys.stdout)andobj.write(sys.stdout), respectively.Renamed argument
filepathof methodJUnitXml.fromfiletofile,to reflect that this method supports file objects, file-like objects, and urls.
Setter method
TestCase.resultused to ignore values of invalid types. This method now throws aValueErrorinstead.Method
xunit2.TestCase.add_rerun_resulthas been renamed toadd_interim_resultresult to better reflect class hierarchyof interim (rerun and flaky) results.
Methods
JUnitXml.fromfile,JUnitXml.fromstring,JUnitXml.fromrootalways return aJUnitXmlinstance.Earlier versions return a
TestSuiteinstance when the root of the file / string / element is a<TestSuite>.A
JUnitXmlinstance has already been returned by earlier versions when the root of the file / string / element is a<TestSuites>.If you want to create a
TestSuiteinstance from a<TestSuite>element, useTestSuite.fromelem(elem)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 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 was generated by Mend Renovate. View the repository job log.