unittest-scenarios


Nameunittest-scenarios JSON
Version 1.1.1 PyPI version JSON
download
home_pagehttps://github.com/rcxwhiz/unittest-scenarios
SummaryAdd scenario based testing to unittest.
upload_time2025-03-23 22:40:22
maintainerNone
docs_urlNone
authorJosh Bedwell
requires_python>=3.12
licenseMIT
keywords unittest pytest
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Unittest Scenarios

[![Tests](https://github.com/rcxwhiz/unittest-scenarios/actions/workflows/test.yml/badge.svg)](https://github.com/rcxwhiz/unittest-scenarios/actions/workflows/)
[![Coverage](https://codecov.io/gh/rcxwhiz/unittest-scenarios/branch/main/graph/badge.svg)](https://codecov.io/gh/rcxwhiz/unittest-scenarios/)
[![PyPi](https://img.shields.io/pypi/v/unittest-scenarios.svg)](https://pypi.python.org/pypi/unittest-scenarios/)
[![Supported Python versions](https://img.shields.io/pypi/pyversions/unittest-scenarios.svg)](https://pypi.python.org/pypi/unittest-scenarios/)

This library adds "scenario-based testing" to Pytest via `unittest.TestCase` mixins. A "scenario-based test" is a test
that is defined by an initial and final state of files. This is useful for testing things like data pipelines/workflows
where inputs/outputs are file based, or any other type of test that is suited to be represented by a file structure. 

This package includes methods for recursively comparing directories, archives, text files, and binary files in a
cross-platform friendly way. This library also has flexible tools for configuring isolated testing environments, again
useful for data pipelines like [snakemake](https://snakemake.github.io/) that might depend on files present in the
working directory.

# Installation

# Usage

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rcxwhiz/unittest-scenarios",
    "name": "unittest-scenarios",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.12",
    "maintainer_email": null,
    "keywords": "unittest, pytest",
    "author": "Josh Bedwell",
    "author_email": "rcxwhiz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/a2/a1/9a4a81dd2667946a6dbebad54caad4715a872bb9aa34699c85f588164334/unittest_scenarios-1.1.1.tar.gz",
    "platform": null,
    "description": "# Unittest Scenarios\n\n[![Tests](https://github.com/rcxwhiz/unittest-scenarios/actions/workflows/test.yml/badge.svg)](https://github.com/rcxwhiz/unittest-scenarios/actions/workflows/)\n[![Coverage](https://codecov.io/gh/rcxwhiz/unittest-scenarios/branch/main/graph/badge.svg)](https://codecov.io/gh/rcxwhiz/unittest-scenarios/)\n[![PyPi](https://img.shields.io/pypi/v/unittest-scenarios.svg)](https://pypi.python.org/pypi/unittest-scenarios/)\n[![Supported Python versions](https://img.shields.io/pypi/pyversions/unittest-scenarios.svg)](https://pypi.python.org/pypi/unittest-scenarios/)\n\nThis library adds \"scenario-based testing\" to Pytest via `unittest.TestCase` mixins. A \"scenario-based test\" is a test\nthat is defined by an initial and final state of files. This is useful for testing things like data pipelines/workflows\nwhere inputs/outputs are file based, or any other type of test that is suited to be represented by a file structure. \n\nThis package includes methods for recursively comparing directories, archives, text files, and binary files in a\ncross-platform friendly way. This library also has flexible tools for configuring isolated testing environments, again\nuseful for data pipelines like [snakemake](https://snakemake.github.io/) that might depend on files present in the\nworking directory.\n\n# Installation\n\n# Usage\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Add scenario based testing to unittest.",
    "version": "1.1.1",
    "project_urls": {
        "Homepage": "https://github.com/rcxwhiz/unittest-scenarios",
        "Repository": "https://github.com/rcxwhiz/unittest-scenarios"
    },
    "split_keywords": [
        "unittest",
        " pytest"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "30c40e0cd6bbf809d3e26843cfd739ffdee44fc3ab68c81cb4941ba3dd48d5e2",
                "md5": "2f579f1065e97fc30e268cd2ece9088e",
                "sha256": "f26f9ab3408bbb7137ed22d425016793357c0d99c32ec3af9d2a73256df6b19b"
            },
            "downloads": -1,
            "filename": "unittest_scenarios-1.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2f579f1065e97fc30e268cd2ece9088e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.12",
            "size": 7741,
            "upload_time": "2025-03-23T22:40:21",
            "upload_time_iso_8601": "2025-03-23T22:40:21.150779Z",
            "url": "https://files.pythonhosted.org/packages/30/c4/0e0cd6bbf809d3e26843cfd739ffdee44fc3ab68c81cb4941ba3dd48d5e2/unittest_scenarios-1.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2a19a4a81dd2667946a6dbebad54caad4715a872bb9aa34699c85f588164334",
                "md5": "fceec84413276983f03bc220bd017b8f",
                "sha256": "b294042db55210f5482538483118435f422d92095328565cd65bacc1ad5aa8e7"
            },
            "downloads": -1,
            "filename": "unittest_scenarios-1.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "fceec84413276983f03bc220bd017b8f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.12",
            "size": 5371,
            "upload_time": "2025-03-23T22:40:22",
            "upload_time_iso_8601": "2025-03-23T22:40:22.221515Z",
            "url": "https://files.pythonhosted.org/packages/a2/a1/9a4a81dd2667946a6dbebad54caad4715a872bb9aa34699c85f588164334/unittest_scenarios-1.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-23 22:40:22",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rcxwhiz",
    "github_project": "unittest-scenarios",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "unittest-scenarios"
}
        
Elapsed time: 0.45722s