Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Test fixtures for providing fake versions of various system resources (processes, users, groups, etc.)
.. image:: https://img.shields.io/pypi/v/systemfixtures.svg :target: https://pypi.python.org/pypi/systemfixtures :alt: Latest Version
.. image:: https://travis-ci.org/testing-cabal/systemfixtures.svg?branch=master :target: https://travis-ci.org/testing-cabal/systemfixtures :alt: Build Status
.. image:: https://coveralls.io/repos/github/testing-cabal/systemfixtures/badge.svg?branch=master :target: https://coveralls.io/github/testing-cabal/systemfixtures?branch=master :alt: Coverage
.. image:: https://readthedocs.org/projects/systemfixtures/badge/?version=latest :target: http://systemfixtures.readthedocs.io/en/latest/?badge=latest :alt: Documentation Status
A collection of Python fixtures_ to fake out various system resources (processes, users, groups, etc.).
.. _fixtures: https://github.com/testing-cabal/fixtures
Each fake resource typically behaves as an "overlay" on the real resource, in that it can be programmed with fake behavior for a set of inputs, but falls back to the real behavior for the rest.
.. code:: python
import pwd
from systemfixtures import FakeUsers
users = FakeUsers() users.setUp()
pwd.getpwnam("foo") Traceback (most recent call last): ... KeyError: 'getpwnam(): name not found: foo'
users.add("foo", 123) info = pwd.getpwnam("foo") info.pw_uid 123 users.cleanUp()
See the online documentation <http://systemfixtures.readthedocs.io/>
_ for
a complete reference.
See the GitHub project <https://github.com/testing-cabal/systemfixtures>
_. Bugs
can be filed in the issues tracker.
FAQs
Test fixtures for providing fake versions of various system resources (processes, users, groups, etc.)
We found that systemfixtures 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.