Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
A Pytest plugin to ignore tests during collection without reporting them in the test summary.
A Pytest plugin to ignore tests during collection without reporting them in the test summary.
With Pip
$ pip install pytest-dryrun
Successfully installed pytest-dryrun-0.1.0
When the --dryrun
flag is passed to Pytest, only tests marked with dryrun
will be collected and run.
@pytest.mark.dryrun
def test_thing_one():
"""This test will be run, even during dryruns"""
box = get_box()
assert "thing one" in box
def test_thing_two():
"""This test will not by run if the `--dryrun` flag is given to Pytest"""
box = get_box()
assert "thing two" in box
Tests can also be marked with dryrun
using the library's export:
from pytest_dryrun import dryrun
@dryrun
def test_thing_one():
box = get_box()
assert "thing one" in box
If the --no-dryrun
flag is given, only tests not marked with dryrun
will be
collected, meaning that in the example above, only test_thing_two
will be
run.
The --dryrun
and --no-dryrun
arguments are mutually-exclusive.
FAQs
A Pytest plugin to ignore tests during collection without reporting them in the test summary.
We found that pytest-dryrun 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.