%global _empty_manifest_terminate_build 0 Name: python-pytest-emoji Version: 0.2.0 Release: 1 Summary: A pytest plugin that adds emojis to your test result report License: MIT URL: https://github.com/hackebrot/pytest-emoji Source0: https://mirrors.nju.edu.cn/pypi/web/packages/88/4d/d489f939f0717a034cea7955d36bc2a7a5ba1b263871e63ad8cb16d47555/pytest-emoji-0.2.0.tar.gz BuildArch: noarch Requires: python3-pytest %description # pytest-emoji A pytest plugin that adds emojis to your test result report 😍 ## pytest pytest is a mature testing framework for Python that is developed by a thriving community of volunteers. It uses plain assert statements and regular Python comparisons. Writing tests with pytest requires little to no boilerplate code and powerful features allow easy parametrization and intelligent test selection. There are hundreds of plugins available for pytest with which you can extend and customize your testing harness. Distributed under the terms of the MIT license, pytest is free and open source software. Check out [pytest][pytest] if you haven't already and if you're not sold just yet, install this plugin. Maybe that will get you motivated to write more tests! 😁 This pytest plugin was generated with [Cookiecutter][cookiecutter] along with [@hackebrot][hackebrot]'s [cookiecutter-pytest-plugin][plugin-template] template. 🍪 [cookiecutter]: https://github.com/audreyr/cookiecutter [hackebrot]: https://github.com/hackebrot [pytest]: https://github.com/pytest-dev/pytest [plugin-template]: https://github.com/pytest-dev/cookiecutter-pytest-plugin ## Installation **pytest-emoji** is available for Python 3. 🐍 You can install **pytest-emoji** via [pip][pip] from [PyPI][PyPI]: ```text $ pip install pytest-emoji ``` This will automatically install **pytest** of version 4.2.1 or higher. [pip]: https://pypi.python.org/pypi/pip/ [PyPI]: https://pypi.org/project/pytest-emoji/ ## Features This plugin adds a ``--emoji`` CLI flag to pytest, which replaces the test result indicator to emojis, both for *normal* and *verbose* mode. - ``😃 / PASSED 😃`` for passed tests - ``😰 / FAILED 😰`` for failed tests - ``😞 / XFAIL 😞`` for xfailed tests - ``😲 / XPASS 😲`` for xpassed tests - ``🙄 / SKIPPED 🙄`` for skipped tests - ``😡 / ERROR 😡`` for tests with errors Normal mode: ```text $ pytest --emoji ``` ```text tests/test_emoji.py 😃 😰 😞 😲 🙄 😡 ``` Verbose mode: ```text $ pytest --verbose --emoji ``` ```text tests/test_emoji.py::test_passed PASSED 😃 tests/test_emoji.py::test_failed FAILED 😰 tests/test_emoji.py::test_xfailed XFAIL 😞 tests/test_emoji.py::test_xpassed XPASS 😲 tests/test_emoji.py::test_skipped SKIPPED 🙄 tests/test_emoji.py::test_error ERROR 😡 ``` ## Customization You can also change the emojis, if you want. 😛 Add a ``conftest.py`` to your tests folder and implement the following hooks. If you wish to use the default, omit the according hook. ```python def pytest_emoji_passed(config): return "🍪 ", "PASSED 🍪 " def pytest_emoji_failed(config): return "😿 ", "FAILED 😿 " def pytest_emoji_skipped(config): return "🙈 ", "SKIPPED 🙈 " def pytest_emoji_error(config): return "💩 ", "ERROR 💩 " def pytest_emoji_xfailed(config): return "🤓 ", "XFAIL 🤓 " def pytest_emoji_xpassed(config): return "😜 ", "XPASS 😜 " ``` **Naming the hooks correctly is important, make sure you don't make any typos** ⚠️ All of these hooks receive the pytest ``config`` object, which allows you to check options and further customize the output. All hooks need to return a tuple of ``str`` as in ``("", "")``. It's recommended for emoji to add an extra ``" "`` (blank) for better formatting. ## Community Are you interested in contributing to **pytest-emoji**? Your contributions are greatly appreciated! Every little bit helps, and credit will always be given! Everyone interacting in the **pytest-emoji** project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [PyPA Code of Conduct][coc]. [coc]: https://www.pypa.io/en/latest/code-of-conduct/ ## Issues If you encounter any problems, please [file an issue][issues] along with a detailed description. [issues]: https://github.com/hackebrot/pytest-emoji/issues ## License Distributed under the terms of the [MIT][mit] license, **pytest-emoji** is free and open source software [mit]: http://opensource.org/licenses/MIT %package -n python3-pytest-emoji Summary: A pytest plugin that adds emojis to your test result report Provides: python-pytest-emoji BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-pytest-emoji # pytest-emoji A pytest plugin that adds emojis to your test result report 😍 ## pytest pytest is a mature testing framework for Python that is developed by a thriving community of volunteers. It uses plain assert statements and regular Python comparisons. Writing tests with pytest requires little to no boilerplate code and powerful features allow easy parametrization and intelligent test selection. There are hundreds of plugins available for pytest with which you can extend and customize your testing harness. Distributed under the terms of the MIT license, pytest is free and open source software. Check out [pytest][pytest] if you haven't already and if you're not sold just yet, install this plugin. Maybe that will get you motivated to write more tests! 😁 This pytest plugin was generated with [Cookiecutter][cookiecutter] along with [@hackebrot][hackebrot]'s [cookiecutter-pytest-plugin][plugin-template] template. 🍪 [cookiecutter]: https://github.com/audreyr/cookiecutter [hackebrot]: https://github.com/hackebrot [pytest]: https://github.com/pytest-dev/pytest [plugin-template]: https://github.com/pytest-dev/cookiecutter-pytest-plugin ## Installation **pytest-emoji** is available for Python 3. 🐍 You can install **pytest-emoji** via [pip][pip] from [PyPI][PyPI]: ```text $ pip install pytest-emoji ``` This will automatically install **pytest** of version 4.2.1 or higher. [pip]: https://pypi.python.org/pypi/pip/ [PyPI]: https://pypi.org/project/pytest-emoji/ ## Features This plugin adds a ``--emoji`` CLI flag to pytest, which replaces the test result indicator to emojis, both for *normal* and *verbose* mode. - ``😃 / PASSED 😃`` for passed tests - ``😰 / FAILED 😰`` for failed tests - ``😞 / XFAIL 😞`` for xfailed tests - ``😲 / XPASS 😲`` for xpassed tests - ``🙄 / SKIPPED 🙄`` for skipped tests - ``😡 / ERROR 😡`` for tests with errors Normal mode: ```text $ pytest --emoji ``` ```text tests/test_emoji.py 😃 😰 😞 😲 🙄 😡 ``` Verbose mode: ```text $ pytest --verbose --emoji ``` ```text tests/test_emoji.py::test_passed PASSED 😃 tests/test_emoji.py::test_failed FAILED 😰 tests/test_emoji.py::test_xfailed XFAIL 😞 tests/test_emoji.py::test_xpassed XPASS 😲 tests/test_emoji.py::test_skipped SKIPPED 🙄 tests/test_emoji.py::test_error ERROR 😡 ``` ## Customization You can also change the emojis, if you want. 😛 Add a ``conftest.py`` to your tests folder and implement the following hooks. If you wish to use the default, omit the according hook. ```python def pytest_emoji_passed(config): return "🍪 ", "PASSED 🍪 " def pytest_emoji_failed(config): return "😿 ", "FAILED 😿 " def pytest_emoji_skipped(config): return "🙈 ", "SKIPPED 🙈 " def pytest_emoji_error(config): return "💩 ", "ERROR 💩 " def pytest_emoji_xfailed(config): return "🤓 ", "XFAIL 🤓 " def pytest_emoji_xpassed(config): return "😜 ", "XPASS 😜 " ``` **Naming the hooks correctly is important, make sure you don't make any typos** ⚠️ All of these hooks receive the pytest ``config`` object, which allows you to check options and further customize the output. All hooks need to return a tuple of ``str`` as in ``("", "")``. It's recommended for emoji to add an extra ``" "`` (blank) for better formatting. ## Community Are you interested in contributing to **pytest-emoji**? Your contributions are greatly appreciated! Every little bit helps, and credit will always be given! Everyone interacting in the **pytest-emoji** project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [PyPA Code of Conduct][coc]. [coc]: https://www.pypa.io/en/latest/code-of-conduct/ ## Issues If you encounter any problems, please [file an issue][issues] along with a detailed description. [issues]: https://github.com/hackebrot/pytest-emoji/issues ## License Distributed under the terms of the [MIT][mit] license, **pytest-emoji** is free and open source software [mit]: http://opensource.org/licenses/MIT %package help Summary: Development documents and examples for pytest-emoji Provides: python3-pytest-emoji-doc %description help # pytest-emoji A pytest plugin that adds emojis to your test result report 😍 ## pytest pytest is a mature testing framework for Python that is developed by a thriving community of volunteers. It uses plain assert statements and regular Python comparisons. Writing tests with pytest requires little to no boilerplate code and powerful features allow easy parametrization and intelligent test selection. There are hundreds of plugins available for pytest with which you can extend and customize your testing harness. Distributed under the terms of the MIT license, pytest is free and open source software. Check out [pytest][pytest] if you haven't already and if you're not sold just yet, install this plugin. Maybe that will get you motivated to write more tests! 😁 This pytest plugin was generated with [Cookiecutter][cookiecutter] along with [@hackebrot][hackebrot]'s [cookiecutter-pytest-plugin][plugin-template] template. 🍪 [cookiecutter]: https://github.com/audreyr/cookiecutter [hackebrot]: https://github.com/hackebrot [pytest]: https://github.com/pytest-dev/pytest [plugin-template]: https://github.com/pytest-dev/cookiecutter-pytest-plugin ## Installation **pytest-emoji** is available for Python 3. 🐍 You can install **pytest-emoji** via [pip][pip] from [PyPI][PyPI]: ```text $ pip install pytest-emoji ``` This will automatically install **pytest** of version 4.2.1 or higher. [pip]: https://pypi.python.org/pypi/pip/ [PyPI]: https://pypi.org/project/pytest-emoji/ ## Features This plugin adds a ``--emoji`` CLI flag to pytest, which replaces the test result indicator to emojis, both for *normal* and *verbose* mode. - ``😃 / PASSED 😃`` for passed tests - ``😰 / FAILED 😰`` for failed tests - ``😞 / XFAIL 😞`` for xfailed tests - ``😲 / XPASS 😲`` for xpassed tests - ``🙄 / SKIPPED 🙄`` for skipped tests - ``😡 / ERROR 😡`` for tests with errors Normal mode: ```text $ pytest --emoji ``` ```text tests/test_emoji.py 😃 😰 😞 😲 🙄 😡 ``` Verbose mode: ```text $ pytest --verbose --emoji ``` ```text tests/test_emoji.py::test_passed PASSED 😃 tests/test_emoji.py::test_failed FAILED 😰 tests/test_emoji.py::test_xfailed XFAIL 😞 tests/test_emoji.py::test_xpassed XPASS 😲 tests/test_emoji.py::test_skipped SKIPPED 🙄 tests/test_emoji.py::test_error ERROR 😡 ``` ## Customization You can also change the emojis, if you want. 😛 Add a ``conftest.py`` to your tests folder and implement the following hooks. If you wish to use the default, omit the according hook. ```python def pytest_emoji_passed(config): return "🍪 ", "PASSED 🍪 " def pytest_emoji_failed(config): return "😿 ", "FAILED 😿 " def pytest_emoji_skipped(config): return "🙈 ", "SKIPPED 🙈 " def pytest_emoji_error(config): return "💩 ", "ERROR 💩 " def pytest_emoji_xfailed(config): return "🤓 ", "XFAIL 🤓 " def pytest_emoji_xpassed(config): return "😜 ", "XPASS 😜 " ``` **Naming the hooks correctly is important, make sure you don't make any typos** ⚠️ All of these hooks receive the pytest ``config`` object, which allows you to check options and further customize the output. All hooks need to return a tuple of ``str`` as in ``("", "")``. It's recommended for emoji to add an extra ``" "`` (blank) for better formatting. ## Community Are you interested in contributing to **pytest-emoji**? Your contributions are greatly appreciated! Every little bit helps, and credit will always be given! Everyone interacting in the **pytest-emoji** project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the [PyPA Code of Conduct][coc]. [coc]: https://www.pypa.io/en/latest/code-of-conduct/ ## Issues If you encounter any problems, please [file an issue][issues] along with a detailed description. [issues]: https://github.com/hackebrot/pytest-emoji/issues ## License Distributed under the terms of the [MIT][mit] license, **pytest-emoji** is free and open source software [mit]: http://opensource.org/licenses/MIT %prep %autosetup -n pytest-emoji-0.2.0 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-pytest-emoji -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Tue Apr 25 2023 Python_Bot - 0.2.0-1 - Package Spec generated