100 строки
3.1 KiB
Diff
100 строки
3.1 KiB
Diff
From cef8c2bc6ef91b1f0da18c64fbce00c10369b708 Mon Sep 17 00:00:00 2001
|
|
From: Haikel Guemar <hguemar@fedoraproject.org>
|
|
Date: Wed, 25 Jul 2018 14:55:16 +0200
|
|
Subject: [PATCH] Skip tests irrelevant in the context of Fedora packaging
|
|
|
|
---
|
|
tests/__init__.py | 0
|
|
tests/test_pyperclip.py | 6 +++++-
|
|
tests/test_single.py | 5 +++++
|
|
3 files changed, 10 insertions(+), 1 deletion(-)
|
|
create mode 100644 tests/__init__.py
|
|
|
|
diff --git a/tests/__init__.py b/tests/__init__.py
|
|
new file mode 100644
|
|
index 0000000..e69de29
|
|
diff --git a/tests/test_pyperclip.py b/tests/test_pyperclip.py
|
|
index b7dc59d..37976aa 100644
|
|
--- a/tests/test_pyperclip.py
|
|
+++ b/tests/test_pyperclip.py
|
|
@@ -133,6 +133,7 @@ class TestOSX(_TestClipboard):
|
|
clipboard = init_osx_pyobjc_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestGtk(_TestClipboard):
|
|
if HAS_DISPLAY:
|
|
try:
|
|
@@ -142,7 +143,7 @@ class TestGtk(_TestClipboard):
|
|
else:
|
|
clipboard = init_gtk_clipboard()
|
|
|
|
-
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestQt(_TestClipboard):
|
|
if HAS_DISPLAY:
|
|
try:
|
|
@@ -158,16 +159,19 @@ class TestQt(_TestClipboard):
|
|
clipboard = init_qt_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestXClip(_TestClipboard):
|
|
if _executable_exists("xclip"):
|
|
clipboard = init_xclip_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestXSel(_TestClipboard):
|
|
if _executable_exists("xsel"):
|
|
clipboard = init_xsel_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestKlipper(_TestClipboard):
|
|
if _executable_exists("klipper") and _executable_exists("qdbus"):
|
|
clipboard = init_klipper_clipboard()
|
|
diff --git a/tests/test_single.py b/tests/test_single.py
|
|
index 8e3414e..518ea60 100644
|
|
--- a/tests/test_single.py
|
|
+++ b/tests/test_single.py
|
|
@@ -98,6 +98,7 @@ class TestOSX(_TestClipboard):
|
|
clipboard = init_osx_pyobjc_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestGtk(_TestClipboard):
|
|
if HAS_DISPLAY:
|
|
try:
|
|
@@ -108,6 +109,7 @@ class TestGtk(_TestClipboard):
|
|
clipboard = init_gtk_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestQt(_TestClipboard):
|
|
if HAS_DISPLAY:
|
|
try:
|
|
@@ -123,16 +125,19 @@ class TestQt(_TestClipboard):
|
|
clipboard = init_qt_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestXClip(_TestClipboard):
|
|
if _executable_exists("xclip"):
|
|
clipboard = init_xclip_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestXSel(_TestClipboard):
|
|
if _executable_exists("xsel"):
|
|
clipboard = init_xsel_clipboard()
|
|
|
|
|
|
+@unittest.skip("Not relevant in Fedora package build")
|
|
class TestKlipper(_TestClipboard):
|
|
if _executable_exists("klipper") and _executable_exists("qdbus"):
|
|
clipboard = init_klipper_clipboard()
|
|
--
|
|
2.17.1
|
|
|