summaryrefslogtreecommitdiff
path: root/python-pytest-spec.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 16:06:32 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 16:06:32 +0000
commitdc34be64f7400b3e5cdfc576054f2a593f5cb8b5 (patch)
tree801059970a6805b678fcb4359a34454bad8f8140 /python-pytest-spec.spec
parent63fed301e7f801c75369d660281195cc2b606811 (diff)
automatic import of python-pytest-spec
Diffstat (limited to 'python-pytest-spec.spec')
-rw-r--r--python-pytest-spec.spec562
1 files changed, 562 insertions, 0 deletions
diff --git a/python-pytest-spec.spec b/python-pytest-spec.spec
new file mode 100644
index 0000000..d1ef7d8
--- /dev/null
+++ b/python-pytest-spec.spec
@@ -0,0 +1,562 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pytest-spec
+Version: 3.2.0
+Release: 1
+Summary: Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
+License: GPL-2.0-or-later
+URL: https://github.com/pchomik/pytest-spec
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ea/9f/61c27fbad6cddc593405b072a726ff67c43c4802a54ddb22ffbcb1c25ae5/pytest-spec-3.2.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-six
+
+%description
+<p>
+ <h1 align="center">pytest-spec</h1>
+ <p align="center">
+ <img src="https://badgen.net/badge/python/2.7/green">
+ <img src="https://badgen.net/badge/python/3.5/green">
+ <img src="https://badgen.net/badge/python/3.6/green">
+ <img src="https://badgen.net/badge/python/3.7/green">
+ <img src="https://badgen.net/badge/python/3.8/green">
+ <img src="https://badgen.net/badge/python/3.9/green">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/os/linux/blue">
+ <img src="https://badgen.net/badge/os/windows/blue">
+ <img src="https://badgen.net/badge/os/macos/blue">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/pytest/3.9.3/purple">
+ <img src="https://badgen.net/badge/pytest/4.6.11/purple">
+ <img src="https://badgen.net/badge/pytest/5.4.3/purple">
+ <img src="https://badgen.net/badge/pytest/6.1.2/purple">
+ </p>
+ <p align="center">
+ Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
+ </p>
+</p>
+
+
+## Available features
+
+* Format output to look like specification.
+* Group tests by classes and files
+* Failed, passed and skipped are marked and colored.
+* Remove test\_ and underscores for every test.
+* It is possible to use docstring summary instead of test name.
+* Supports function based, class based test.
+* Supports describe like tests.
+
+
+## Output example
+
+![Example](https://github.com/pchomik/pytest-spec/raw/master/docs/output.gif)
+
+
+## Configuration
+
+### spec_header_format
+
+You can configure the format of the test headers by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+```ini
+ [tool:pytest]
+ spec_header_format = {module_path}:
+```
+
+In addition to the ``{path}`` and ``{class_name}`` replacement fields, there is also ``{test_case}`` that holds a more human readable name.
+
+### spec_test_format
+
+You can configure the format of the test results by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+3 variables are available:
+* result - place for indicator
+* name - name of test
+* docstring_summary - first line from test docstring if available
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {name}
+```
+
+or
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {docstring_summary}
+```
+
+In second example where docstring is not available the name will be added to spec output.
+
+### spec_success_indicator
+
+You can configure the indicator displayed when test passed.
+
+```ini
+ [tool:pytest]
+ spec_success_indicator = ✓
+```
+
+### spec_failure_indicator
+
+You can configure the indicator displated when test failed.
+
+```ini
+ [tool:pytest]
+ spec_failure_indicator = ✗
+```
+
+### spec_skipped_indicator
+
+You can configure the indicator displated when test is skipped.
+
+```ini
+ [tool:pytest]
+ spec_skipped_indicator = ?
+```
+
+### spec_ignore
+
+Comma-separated settings to ignore/hide some tests or output from from plugins like FLAKE8 or ISORT.
+Any test which contain provided string will be ignored in output spec.
+
+```ini
+ [tool:pytest]
+ spec_ignore = FLAKE8
+```
+
+### spec_indent
+
+```ini
+ [tool:pytest]
+ spec_indent = " "
+```
+
+## Continuous Integration
+
+[![Tests](https://github.com/pchomik/pytest-spec/workflows/test/badge.svg)](https://github.com/pchomik/pytest-spec/actions)
+
+
+## Download
+
+All versions of library are available on official [pypi server](https://pypi.org/project/pytest-spec/#history).
+
+## Install
+
+```sh
+ pip install pytest-spec
+```
+
+## Contribution
+
+Please feel free to present your idea by code example (pull request) or reported issues.
+
+## Contributors
+
+* [@0x64746b](https://github.com/0x64746b)
+* [@lucasmarshall](https://github.com/lucasmarshall)
+* [@amcgregor](https://github.com/amcgregor)
+* [@jhermann](https://github.com/jhermann)
+* [@frenzymadness](https://github.com/frenzymadness)
+* [@chrischambers](https://github.com/chrischambers)
+* [@maxalbert](https://github.com/maxalbert)
+* [@jayvdb](https://github.com/jayvdb)
+
+## License
+
+pytest-spec - pytest plugin to display test execution output like a SPECIFICATION.
+
+Copyright (C) 2014-2021 Pawel Chomicki
+
+This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+
+
+%package -n python3-pytest-spec
+Summary: Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
+Provides: python-pytest-spec
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pytest-spec
+<p>
+ <h1 align="center">pytest-spec</h1>
+ <p align="center">
+ <img src="https://badgen.net/badge/python/2.7/green">
+ <img src="https://badgen.net/badge/python/3.5/green">
+ <img src="https://badgen.net/badge/python/3.6/green">
+ <img src="https://badgen.net/badge/python/3.7/green">
+ <img src="https://badgen.net/badge/python/3.8/green">
+ <img src="https://badgen.net/badge/python/3.9/green">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/os/linux/blue">
+ <img src="https://badgen.net/badge/os/windows/blue">
+ <img src="https://badgen.net/badge/os/macos/blue">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/pytest/3.9.3/purple">
+ <img src="https://badgen.net/badge/pytest/4.6.11/purple">
+ <img src="https://badgen.net/badge/pytest/5.4.3/purple">
+ <img src="https://badgen.net/badge/pytest/6.1.2/purple">
+ </p>
+ <p align="center">
+ Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
+ </p>
+</p>
+
+
+## Available features
+
+* Format output to look like specification.
+* Group tests by classes and files
+* Failed, passed and skipped are marked and colored.
+* Remove test\_ and underscores for every test.
+* It is possible to use docstring summary instead of test name.
+* Supports function based, class based test.
+* Supports describe like tests.
+
+
+## Output example
+
+![Example](https://github.com/pchomik/pytest-spec/raw/master/docs/output.gif)
+
+
+## Configuration
+
+### spec_header_format
+
+You can configure the format of the test headers by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+```ini
+ [tool:pytest]
+ spec_header_format = {module_path}:
+```
+
+In addition to the ``{path}`` and ``{class_name}`` replacement fields, there is also ``{test_case}`` that holds a more human readable name.
+
+### spec_test_format
+
+You can configure the format of the test results by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+3 variables are available:
+* result - place for indicator
+* name - name of test
+* docstring_summary - first line from test docstring if available
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {name}
+```
+
+or
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {docstring_summary}
+```
+
+In second example where docstring is not available the name will be added to spec output.
+
+### spec_success_indicator
+
+You can configure the indicator displayed when test passed.
+
+```ini
+ [tool:pytest]
+ spec_success_indicator = ✓
+```
+
+### spec_failure_indicator
+
+You can configure the indicator displated when test failed.
+
+```ini
+ [tool:pytest]
+ spec_failure_indicator = ✗
+```
+
+### spec_skipped_indicator
+
+You can configure the indicator displated when test is skipped.
+
+```ini
+ [tool:pytest]
+ spec_skipped_indicator = ?
+```
+
+### spec_ignore
+
+Comma-separated settings to ignore/hide some tests or output from from plugins like FLAKE8 or ISORT.
+Any test which contain provided string will be ignored in output spec.
+
+```ini
+ [tool:pytest]
+ spec_ignore = FLAKE8
+```
+
+### spec_indent
+
+```ini
+ [tool:pytest]
+ spec_indent = " "
+```
+
+## Continuous Integration
+
+[![Tests](https://github.com/pchomik/pytest-spec/workflows/test/badge.svg)](https://github.com/pchomik/pytest-spec/actions)
+
+
+## Download
+
+All versions of library are available on official [pypi server](https://pypi.org/project/pytest-spec/#history).
+
+## Install
+
+```sh
+ pip install pytest-spec
+```
+
+## Contribution
+
+Please feel free to present your idea by code example (pull request) or reported issues.
+
+## Contributors
+
+* [@0x64746b](https://github.com/0x64746b)
+* [@lucasmarshall](https://github.com/lucasmarshall)
+* [@amcgregor](https://github.com/amcgregor)
+* [@jhermann](https://github.com/jhermann)
+* [@frenzymadness](https://github.com/frenzymadness)
+* [@chrischambers](https://github.com/chrischambers)
+* [@maxalbert](https://github.com/maxalbert)
+* [@jayvdb](https://github.com/jayvdb)
+
+## License
+
+pytest-spec - pytest plugin to display test execution output like a SPECIFICATION.
+
+Copyright (C) 2014-2021 Pawel Chomicki
+
+This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+
+
+%package help
+Summary: Development documents and examples for pytest-spec
+Provides: python3-pytest-spec-doc
+%description help
+<p>
+ <h1 align="center">pytest-spec</h1>
+ <p align="center">
+ <img src="https://badgen.net/badge/python/2.7/green">
+ <img src="https://badgen.net/badge/python/3.5/green">
+ <img src="https://badgen.net/badge/python/3.6/green">
+ <img src="https://badgen.net/badge/python/3.7/green">
+ <img src="https://badgen.net/badge/python/3.8/green">
+ <img src="https://badgen.net/badge/python/3.9/green">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/os/linux/blue">
+ <img src="https://badgen.net/badge/os/windows/blue">
+ <img src="https://badgen.net/badge/os/macos/blue">
+ </p>
+ <p align="center">
+ <img src="https://badgen.net/badge/pytest/3.9.3/purple">
+ <img src="https://badgen.net/badge/pytest/4.6.11/purple">
+ <img src="https://badgen.net/badge/pytest/5.4.3/purple">
+ <img src="https://badgen.net/badge/pytest/6.1.2/purple">
+ </p>
+ <p align="center">
+ Library pytest-spec is a pytest plugin to display test execution output like a SPECIFICATION.
+ </p>
+</p>
+
+
+## Available features
+
+* Format output to look like specification.
+* Group tests by classes and files
+* Failed, passed and skipped are marked and colored.
+* Remove test\_ and underscores for every test.
+* It is possible to use docstring summary instead of test name.
+* Supports function based, class based test.
+* Supports describe like tests.
+
+
+## Output example
+
+![Example](https://github.com/pchomik/pytest-spec/raw/master/docs/output.gif)
+
+
+## Configuration
+
+### spec_header_format
+
+You can configure the format of the test headers by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+```ini
+ [tool:pytest]
+ spec_header_format = {module_path}:
+```
+
+In addition to the ``{path}`` and ``{class_name}`` replacement fields, there is also ``{test_case}`` that holds a more human readable name.
+
+### spec_test_format
+
+You can configure the format of the test results by specifying a [format string](https://docs.python.org/2/library/string.html#format-string-syntax) in your [ini-file](http://doc.pytest.org/en/latest/customize.html#inifiles):
+
+3 variables are available:
+* result - place for indicator
+* name - name of test
+* docstring_summary - first line from test docstring if available
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {name}
+```
+
+or
+
+```ini
+ [tool:pytest]
+ spec_test_format = {result} {docstring_summary}
+```
+
+In second example where docstring is not available the name will be added to spec output.
+
+### spec_success_indicator
+
+You can configure the indicator displayed when test passed.
+
+```ini
+ [tool:pytest]
+ spec_success_indicator = ✓
+```
+
+### spec_failure_indicator
+
+You can configure the indicator displated when test failed.
+
+```ini
+ [tool:pytest]
+ spec_failure_indicator = ✗
+```
+
+### spec_skipped_indicator
+
+You can configure the indicator displated when test is skipped.
+
+```ini
+ [tool:pytest]
+ spec_skipped_indicator = ?
+```
+
+### spec_ignore
+
+Comma-separated settings to ignore/hide some tests or output from from plugins like FLAKE8 or ISORT.
+Any test which contain provided string will be ignored in output spec.
+
+```ini
+ [tool:pytest]
+ spec_ignore = FLAKE8
+```
+
+### spec_indent
+
+```ini
+ [tool:pytest]
+ spec_indent = " "
+```
+
+## Continuous Integration
+
+[![Tests](https://github.com/pchomik/pytest-spec/workflows/test/badge.svg)](https://github.com/pchomik/pytest-spec/actions)
+
+
+## Download
+
+All versions of library are available on official [pypi server](https://pypi.org/project/pytest-spec/#history).
+
+## Install
+
+```sh
+ pip install pytest-spec
+```
+
+## Contribution
+
+Please feel free to present your idea by code example (pull request) or reported issues.
+
+## Contributors
+
+* [@0x64746b](https://github.com/0x64746b)
+* [@lucasmarshall](https://github.com/lucasmarshall)
+* [@amcgregor](https://github.com/amcgregor)
+* [@jhermann](https://github.com/jhermann)
+* [@frenzymadness](https://github.com/frenzymadness)
+* [@chrischambers](https://github.com/chrischambers)
+* [@maxalbert](https://github.com/maxalbert)
+* [@jayvdb](https://github.com/jayvdb)
+
+## License
+
+pytest-spec - pytest plugin to display test execution output like a SPECIFICATION.
+
+Copyright (C) 2014-2021 Pawel Chomicki
+
+This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
+
+This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+
+
+
+%prep
+%autosetup -n pytest-spec-3.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-spec -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 3.2.0-1
+- Package Spec generated