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.
Very simple testing framework suitable for beginner programmers, with easy functions for accomplishing most common testing tasks like providing input. Requires Python 3.8+.
optimism
A very small & simple unit-testing framework designed to provide all the basic necessities to beginner programmers as simply as possible.
Designed by Peter Mawhorter.
Works on Python versions 3.7 and up, with 3.9+ recommended.
To install from PyPI, run the following command on the command-line:
python3 -m pip install optimism
Once it's installed, you can run the tests using:
pytest --doctest-modules optimism.py
pytest test_examples.py
Use the testFunction
, testFunctionMaybe
, testFile
, testBlock
,
and/or testThisNotebookCell
functions to establish test managers for
specific pieces of code. Then use those managers' checkCodeContains
methods to check for the presence/absence of certain code constructs (see
the ASTRequirement
class) or use the case
method to establish a test
case w/ specific inputs (one manager can support multiple derived cases
w/ different inputs). Finally, use methods of a test case like
checkResult
or checkPrintedLines
to check for specific behavior.
See the documentation for more details on how to use it and what each function does.
See the documentation.
FAQs
Very simple testing framework suitable for beginner programmers, with easy functions for accomplishing most common testing tasks like providing input. Requires Python 3.8+.
We found that optimism 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.