![New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions](https://cdn.sanity.io/images/cgdhsj6q/production/86e6ebdea652d20da070ebbda20134b839972db7-1024x1024.webp?w=800&fit=max&auto=format)
Security News
New axobject-query Maintainer Faces Backlash Over Controversial Decision to Support Legacy Node.js Versions
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
pytest-finer-verdicts
Advanced tools
Readme
A pytest plugin to treat non-assertion failures as test errors.
The plugin can be installed via pip install pytest-finer-verdicts
.
Similarly, it can be uninstalled via
pip uninstall pytest-finer-verdicts
.
Consider the following snippet in a file test.py (available as temp/test.py in the repository).
::
import pytest
def test_pass(): assert 70 <= 75
def test_fail(): assert 75 <= 70
def test_error(): raise RuntimeError()
def test_pytest_fail(): pytest.fail("Fail")
def test_pytest_raises(): with pytest.raises(ValueError): raise IndexError()
With pytest-finer-verdicts plugin, py.test test.py -v
will
produce the following output.
::
collected 5 items
test.py::test_pass PASSED test.py::test_fail FAILED test.py::test_error ERROR test.py::test_pytest_fail FAILED test.py::test_pytest_raises ERROR
================================== ERRORS =================================== _______________________ ERROR at setup of test_error ________________________
def test_error():
raise RuntimeError()
E RuntimeError
test.py:13: RuntimeError ___________________ ERROR at setup of test_pytest_raises ____________________
def test_pytest_raises():
with pytest.raises(ValueError):
raise IndexError()
E IndexError
test.py:22: IndexError ================================= FAILURES ================================== _________________________________ test_fail _________________________________
def test_fail():
assert 75 <= 70
E assert 75 <= 70
test.py:9: AssertionError _____________________________ test_pytest_fail ______________________________
def test_pytest_fail():
pytest.fail("Fail")
E Failed: Fail
test.py:17: Failed ================ 2 failed, 1 passed, 2 error in 0.05 seconds ================
Notice how test_error
and test_pytest_raises
are flagged as
test errors by the plugin.
Copyright (c) 2016-2018, Venkatesh-Prasad Ranganath
Licensed under BSD 3-clause “New” or “Revised” License (https://choosealicense.com/licenses/bsd-3-clause/)
Authors: Venkatesh-Prasad Ranganath
FAQs
A pytest plugin to treat non-assertion failures as test errors.
We found that pytest-finer-verdicts demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A JavaScript library maintainer is under fire after merging a controversial PR to support legacy versions of Node.js.
Security News
Results from the 2023 State of JavaScript Survey highlight key trends, including Vite's dominance, rising TypeScript adoption, and the enduring popularity of React. Discover more insights on developer preferences and technology usage.
Security News
The US Justice Department has penalized two consulting firms $11.3 million for failing to meet cybersecurity requirements on federally funded projects, emphasizing strict enforcement to protect sensitive government data.