semvec/pypi-packages huggingface dataset:
pytest-splitio 0.1.0
Split.io SDK integration for e2e tests
License: MIT
Requires Python: >=3.6

==============
pytest-splitio
==============

.. image:: https://img.shields.io/pypi/v/pytest-splitio.svg
    :target: https://pypi.org/project/pytest-splitio
    :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/pytest-splitio.svg
    :target: https://pypi.org/project/pytest-splitio
    :alt: Python versions

Split.io SDK integration for e2e tests

----

Requirements
------------

* Pytest >= 5.0
* splitio_client >= 8.0

Installation
------------

You can install "pytest-splitio" via `pip`_ from `PyPI`_::

    $ pip install pytest-splitio


Usage
----------

There are two types of markers - **skipif_split_not_equal** and **skipif_split_equals**.

* This test will be skipped if 'cool-split-name' split's value is not equal to "on" value in environment

.. code-block:: python

    import pytest

    @pytest.mark.skipif_split_not_equal('cool-split-name', 'on')
    def test_m1():
        pass

* This test will be skipped if 'cool-split-name' split's value is equal to "off" value

.. code-block:: python

    import pytest

    @pytest.mark.skipif_split_equals('cool-split-name', 'off')
    def test_m2():
        pass

You can also add some logic inside your test, by checking split's treatment value

* Make sure to pass 'split' argument to your test function

.. code-block:: python

    def test_m3(split):
        split_treatment = split.get_treatment('cool-split-name')
        if split_treatment == 'on':
            print('YES!!!')

Now to Run your tests you need to specify --SPLIT-KEY argument or create an environment variable *SPLIT_KEY*,
which should be environment SDK key::

    $ python -m pytest --SPLIT-KEY="your-split-sdk-key"

Contributing
------------
Contributions are very welcome.

License
-------

Distributed under the terms of the `MIT`_ license, "pytest-splitio" is free and open source software


Issues
------

If you encounter any problems, please `file an issue`_ along with a detailed description.

.. _`MIT`: http://opensource.org/licenses/MIT
.. _`file an issue`: https://github.com/mikoblog/pytest-splitio/issues
.. _`pip`: https://pypi.org/project/pip/
.. _`PyPI`: https://pypi.org/project/pytest-splitio
pycopy-venv 0.2
venv module for Pycopy
License: MIT

This is a module for the standard library of Pycopy project:
https://github.com/pfalcon/pycopy . This module was implemented from
scratch specifically to target Pycopy, with efficient and lean design
in mind. Note that this module is likely work in progress and likely
supports just a subset of CPython’s corresponding module. Please help
with the development if you are interested in this module.
discoset 0.9.3
Small script to setup symlinks to dotfiles
License: MIT
Keywords: dotfiles,symlink,configs

[![Build Status](https://travis-ci.com/chsigi/discoset.svg?branch=master)](https://travis-ci.com/chsigi/discoset)

# Overview

dis·co·set (distributed configurations setup) is a small system that helps you in
managing your configuration files between various hosts and users. Quite a statement
for a small script that just calls ln multiple times :-).

The script makes no assumptions about the way you share your configuration files
between hosts (git, svn, dropbox, ...) or about the layout of your shared folder.

You just describe in a YAML file which configuration files belong to a specific user
and a specific host and where to put symlinks to them.

See [Discoset_SAMPLE.yml](Discoset_SAMPLE.yml) for an example.

# Todo

* Add setup command
* Add cleanup command
* Extend tests to check for alien files
* Extend tests to check for files that are updated