commit 52cebc8da90817bfbbbda9e5115e628a392bcdc65a62a0802a5ebedc775731e6 Author: Ondřej Súkup Date: Sun May 13 12:24:10 2018 +0000 pytest - subproject OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-xvfb?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-xvfb-1.1.0.tar.gz b/pytest-xvfb-1.1.0.tar.gz new file mode 100644 index 0000000..bb33ae6 --- /dev/null +++ b/pytest-xvfb-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21576c6435613b98b21e8917c6c76654f5e6766df9003c5fec8cba7fd2eede21 +size 7575 diff --git a/python-pytest-xvfb.changes b/python-pytest-xvfb.changes new file mode 100644 index 0000000..a12d796 --- /dev/null +++ b/python-pytest-xvfb.changes @@ -0,0 +1,15 @@ +------------------------------------------------------------------- +Sun Apr 15 18:54:38 UTC 2018 - arun@gmx.de + +- specfile: + * update copyright year + * always run tests + +- update to version 1.1.0: + * The xvfb_args option is now a single line parsed with shlex.split. + * The XvfbExitedError exception now includes stdout and stderr. + +------------------------------------------------------------------- +Mon Aug 28 17:18:33 UTC 2017 - toddrme2178@gmail.com + +- Initial version diff --git a/python-pytest-xvfb.spec b/python-pytest-xvfb.spec new file mode 100644 index 0000000..f9d4cbf --- /dev/null +++ b/python-pytest-xvfb.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-pytest-xvfb +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-xvfb +Version: 1.1.0 +Release: 0 +Summary: Pytest plugin to run Xvfb for tests +License: MIT +Group: Development/Languages/Python +URL: https://github.com/The-Compiler/pytest-xvfb +Source: https://files.pythonhosted.org/packages/source/p/pytest-xvfb/pytest-xvfb-%{version}.tar.gz +BuildRequires: %{python_module PyVirtualDisplay >= 0.2.1} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest >= 2.8.1} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: xorg-x11-server +Requires: python-PyVirtualDisplay >= 0.2.1 +Requires: python-pytest >= 2.8.1 +Recommends: xorg-x11-server +BuildArch: noarch +%python_subpackages + +%description +A pytest plugin to run Xvfb for tests. + +With Xvfb and the plugin installed, your testsuite automatically runs +with Xvfb. This allows tests to be run without windows popping up +during GUI tests or on systems without a display (like a CI). + +If Xvfb is not installed, the plugin does not run and your tests will +still work as normal. However, a warning message will print to standard +output letting you know that Xvfb is not installed. + +If you're currently using xvfb-run in something like .travis.yml, +simply remove it and install this plugin instead - then you'll also have the +benefits of Xvfb locally. + +%prep +%setup -q -n pytest-xvfb-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%python_exec setup.py test + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/* + +%changelog