{ "info": { "author": "Peter Bittner", "author_email": "peter@painless.software", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing :: Mocking", "Topic :: Software Development :: Testing :: Unit" ], "description": "cli-test-helpers |latest-version|\n=================================\n\n|check-status| |test-status| |python-support| |license| |docs-status|\n\nUseful helpers for writing tests for your Python CLI program.\n\nWriting tests for a command line interface (CLI) tool `may not seem strictly\nstraight-forward`_ when you think in terms of unit tests. Especially, when you\nuse the `argparse`_ module or the `click`_ package, control of the application\nentry point is a bit taken away from you.\n\nBut it's not all that bad. This package is here to help. The `examples`_ give\nyou some guidance on how to get started, and the helpers allow you to deal with\ncommon cases, such as mocking CLI arguments and environment variable values.\n\n.. |latest-version| image:: https://img.shields.io/pypi/v/cli-test-helpers.svg\n :target: https://pypi.org/project/cli-test-helpers\n :alt: Latest version on PyPI\n.. |check-status| image:: https://github.com/painless-software/python-cli-test-helpers/actions/workflows/check.yml/badge.svg\n :target: https://github.com/painless-software/python-cli-test-helpers/actions/workflows/check.yml\n :alt: Code checks status\n.. |test-status| image:: https://github.com/painless-software/python-cli-test-helpers/actions/workflows/test.yml/badge.svg\n :target: https://github.com/painless-software/python-cli-test-helpers/actions/workflows/test.yml\n :alt: Test suite status\n.. |python-support| image:: https://img.shields.io/pypi/pyversions/cli-test-helpers.svg\n :target: https://pypi.org/project/cli-test-helpers\n :alt: Python versions\n.. |license| image:: https://img.shields.io/pypi/l/cli-test-helpers.svg\n :target: https://github.com/painless-software/python-cli-test-helpers/blob/main/LICENSE\n :alt: Software license\n.. |docs-status| image:: https://img.shields.io/readthedocs/python-cli-test-helpers/latest.svg\n :target: https://readthedocs.org/projects/python-cli-test-helpers/\n :alt: Documentation Status\n.. _may not seem strictly straight-forward: https://stackoverflow.com/questions/13493288/\n.. _argparse: https://docs.python.org/3/library/argparse.html\n.. _click: https://click.palletsprojects.com/\n.. _documentation: https://python-cli-test-helpers.readthedocs.io/\n.. _examples: https://github.com/painless-software/python-cli-test-helpers/tree/main/examples\n\n.. links-marker\n\nDocumentation\n-------------\n\nSee the `documentation`_ for installation instructions and a tutorial.\n\nExamples\n--------\n\nThe `examples`_ folder contains a hands-on example you can directly start to use.\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/painless-software/python-cli-test-helpers", "keywords": "python,cli,testing,helpers", "license": "", "maintainer": "", "maintainer_email": "", "name": "cli-test-helpers", "package_url": "https://pypi.org/project/cli-test-helpers/", "platform": "", "project_url": "https://pypi.org/project/cli-test-helpers/", "project_urls": { "Documentation": "https://python-cli-test-helpers.readthedocs.io/", "Examples": "https://github.com/painless-software/python-cli-test-helpers/tree/main/examples", "Homepage": "https://github.com/painless-software/python-cli-test-helpers" }, "release_url": "https://pypi.org/project/cli-test-helpers/3.1.0/", "requires_dist": [ "mock (<4) ; python_version < \"3\"" ], "requires_python": "", "summary": "Useful helpers for writing tests for your Python CLI program.", "version": "3.1.0", "yanked": false, "yanked_reason": null }, "last_serial": 13092225, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "f5858821f887c8f31db82e3476b6a43a", "sha256": "ed1bbae7031f66339510076450ad4ccff918ffadf565f7dfa884f148cb674d00" }, "downloads": -1, "filename": "cli_test_helpers-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "f5858821f887c8f31db82e3476b6a43a", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16253, "upload_time": "2019-10-27T22:48:51", "upload_time_iso_8601": "2019-10-27T22:48:51.258677Z", "url": "https://files.pythonhosted.org/packages/19/69/2df351e8e099b562ff17bda3a8e9d9ba09d283165119d0a826335670d604/cli_test_helpers-1.0.0-py2-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9eda53e40f8fe91a79e3801f81121430", "sha256": "eedff2c4f754f250042702089219dc29827b2c8d53a7d2dd1c3d4ce3d05af8df" }, "downloads": -1, "filename": "cli-test-helpers-1.0.0.tar.gz", "has_sig": false, "md5_digest": "9eda53e40f8fe91a79e3801f81121430", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17269, "upload_time": "2019-10-27T22:48:53", "upload_time_iso_8601": "2019-10-27T22:48:53.880063Z", "url": "https://files.pythonhosted.org/packages/b5/bf/a7326bb5b54c78ec67eed7c1e9341a67c24ef09e13814164f7b30f1b03a0/cli-test-helpers-1.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "b2e72abfc8179617a774e513cc713b5f", "sha256": "8a3f470c730d19f8092f074dda82f1cd47cf0114557e791757cb495a1bf5f3d2" }, "downloads": -1, "filename": "cli_test_helpers-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "b2e72abfc8179617a774e513cc713b5f", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 16326, "upload_time": "2019-10-28T22:02:25", "upload_time_iso_8601": "2019-10-28T22:02:25.385501Z", "url": "https://files.pythonhosted.org/packages/cf/70/fc64bbc59d281137e5fab0334d689120bdfd21dc06d1f5335feda7e5724f/cli_test_helpers-1.0.1-py2-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "4e260bad09dee0a717130e57664df757", "sha256": "a1b3e2d901e0eb356e051cb3d78d99c1f1590a3c6b20df9cde8564b8d4c4ee03" }, "downloads": -1, "filename": "cli-test-helpers-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4e260bad09dee0a717130e57664df757", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17422, "upload_time": "2019-10-28T22:02:27", "upload_time_iso_8601": "2019-10-28T22:02:27.104788Z", "url": "https://files.pythonhosted.org/packages/7c/b5/1a372ea120928d379e0dc330683e5288cfce6c3f3c55ed5c56cee147401b/cli-test-helpers-1.0.1.tar.gz", "yanked": false, "yanked_reason": null } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "89532170c5cf805dd5f07103e960d171", "sha256": "a50222daf5650fde69c1287b6062fcf887e77bf082cb7dd6f629046201080a07" }, "downloads": -1, "filename": "cli_test_helpers-2.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "89532170c5cf805dd5f07103e960d171", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16191, "upload_time": "2022-01-28T08:43:37", "upload_time_iso_8601": "2022-01-28T08:43:37.030782Z", "url": "https://files.pythonhosted.org/packages/e1/69/63298b93b731a57d16b1157473de6c53da815c92e1b57e0aeabfc231355c/cli_test_helpers-2.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "982a30e05a82b02b2fdb88e154c44b97", "sha256": "494d69879fd783cc14b1c24240d33cd7e8b885a5a96fffed05e8b232c6b53db0" }, "downloads": -1, "filename": "cli-test-helpers-2.0.0.tar.gz", "has_sig": false, "md5_digest": "982a30e05a82b02b2fdb88e154c44b97", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15731, "upload_time": "2022-01-28T08:43:37", "upload_time_iso_8601": "2022-01-28T08:43:37.937113Z", "url": "https://files.pythonhosted.org/packages/9d/f1/de3c80c7a3996f76fde639f314ae784dcc5a6a63e82bf0a5862ac57a81df/cli-test-helpers-2.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "d5192798d661a0ff007c2aff3ae2bb57", "sha256": "d904b724d91f38f21822f2a6dc3b3068919b96842f4d8306e961192e6590fb86" }, "downloads": -1, "filename": "cli_test_helpers-2.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d5192798d661a0ff007c2aff3ae2bb57", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16186, "upload_time": "2022-02-02T00:34:05", "upload_time_iso_8601": "2022-02-02T00:34:05.412806Z", "url": "https://files.pythonhosted.org/packages/f2/d7/692c03a98977629d3e951077879260a25d8b38d53d87afd9b9483c9998f7/cli_test_helpers-2.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "667d1d74d9afe373e3612f9de29d18b1", "sha256": "341667f3936ddf825dffe6155e9dffa07b09770fb73305cd43589cc6b42e8d75" }, "downloads": -1, "filename": "cli-test-helpers-2.1.0.tar.gz", "has_sig": false, "md5_digest": "667d1d74d9afe373e3612f9de29d18b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15722, "upload_time": "2022-02-02T00:34:06", "upload_time_iso_8601": "2022-02-02T00:34:06.602934Z", "url": "https://files.pythonhosted.org/packages/03/96/2a00e9c61b1fa7c68d6b7c89d8d2ec653f59fde529a6016c6155024ea216/cli-test-helpers-2.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "3.0.0": [ { "comment_text": "", "digests": { "md5": "1c835091747c6c1e7a3d95e0d71e19c8", "sha256": "cbbe36a56e83f272b8f5541b93849b4f2966c0ce86c3820103b4ac31a81c9c4d" }, "downloads": -1, "filename": "cli_test_helpers-3.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "1c835091747c6c1e7a3d95e0d71e19c8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16327, "upload_time": "2022-02-26T15:47:57", "upload_time_iso_8601": "2022-02-26T15:47:57.978053Z", "url": "https://files.pythonhosted.org/packages/f0/d4/7de0e1d2a5a56a76a0d39af5ad4932a569ac5b6132c06622a5c90ea8a923/cli_test_helpers-3.0.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "6c3e280f2d7e155782c397602cd88f63", "sha256": "c2498fc821cbf127e19e0ccf2cc7aeae293a8a642d57038cbc0f9320d626abe1" }, "downloads": -1, "filename": "cli-test-helpers-3.0.0.tar.gz", "has_sig": false, "md5_digest": "6c3e280f2d7e155782c397602cd88f63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16232, "upload_time": "2022-02-26T15:47:59", "upload_time_iso_8601": "2022-02-26T15:47:59.429012Z", "url": "https://files.pythonhosted.org/packages/d3/85/a77c9340f4189b34c9596988c1a2823e816d6ca002c2dc4f7c5d971a4236/cli-test-helpers-3.0.0.tar.gz", "yanked": false, "yanked_reason": null } ], "3.1.0": [ { "comment_text": "", "digests": { "md5": "41bda463c6ed4649e1c3ff81c99bc0aa", "sha256": "26be2d55095a432a41a437e7209fc238ef00f02a3b2c307ac3e56bb61f7a3473" }, "downloads": -1, "filename": "cli_test_helpers-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "41bda463c6ed4649e1c3ff81c99bc0aa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16359, "upload_time": "2022-03-06T10:42:00", "upload_time_iso_8601": "2022-03-06T10:42:00.918104Z", "url": "https://files.pythonhosted.org/packages/d3/b5/1aa5136c65165a629cf4374fb33d0138566a7928e307b511ce5bbae6b519/cli_test_helpers-3.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c869624ef652380829f6b0db0a14d157", "sha256": "9eb7b714cb8049799575dae2fa7da4250efd6b73e23eeb94438554eec4033cff" }, "downloads": -1, "filename": "cli-test-helpers-3.1.0.tar.gz", "has_sig": false, "md5_digest": "c869624ef652380829f6b0db0a14d157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16238, "upload_time": "2022-03-06T10:42:02", "upload_time_iso_8601": "2022-03-06T10:42:02.285699Z", "url": "https://files.pythonhosted.org/packages/a1/38/8ac198fca927460cd4dfc9deedc341c0624cb04464fb33f4f1392ca29148/cli-test-helpers-3.1.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "41bda463c6ed4649e1c3ff81c99bc0aa", "sha256": "26be2d55095a432a41a437e7209fc238ef00f02a3b2c307ac3e56bb61f7a3473" }, "downloads": -1, "filename": "cli_test_helpers-3.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "41bda463c6ed4649e1c3ff81c99bc0aa", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16359, "upload_time": "2022-03-06T10:42:00", "upload_time_iso_8601": "2022-03-06T10:42:00.918104Z", "url": "https://files.pythonhosted.org/packages/d3/b5/1aa5136c65165a629cf4374fb33d0138566a7928e307b511ce5bbae6b519/cli_test_helpers-3.1.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "c869624ef652380829f6b0db0a14d157", "sha256": "9eb7b714cb8049799575dae2fa7da4250efd6b73e23eeb94438554eec4033cff" }, "downloads": -1, "filename": "cli-test-helpers-3.1.0.tar.gz", "has_sig": false, "md5_digest": "c869624ef652380829f6b0db0a14d157", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16238, "upload_time": "2022-03-06T10:42:02", "upload_time_iso_8601": "2022-03-06T10:42:02.285699Z", "url": "https://files.pythonhosted.org/packages/a1/38/8ac198fca927460cd4dfc9deedc341c0624cb04464fb33f4f1392ca29148/cli-test-helpers-3.1.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }