| |
@@ -1,43 +0,0 @@
|
| |
- From 466db30d395024f6bf5bb61c39308555c85ce1cf Mon Sep 17 00:00:00 2001
|
| |
- From: Vadim Rutkovsky <vrutkovs@redhat.com>
|
| |
- Date: Wed, 8 Nov 2017 14:34:36 +0100
|
| |
- Subject: [PATCH] tests: skip tests if dockpulp has no imgutils module
|
| |
-
|
| |
- ---
|
| |
- tests/plugins/test_pulp_tag.py | 6 +++---
|
| |
- 1 file changed, 3 insertions(+), 3 deletions(-)
|
| |
-
|
| |
- diff --git a/tests/plugins/test_pulp_tag.py b/tests/plugins/test_pulp_tag.py
|
| |
- index 65ae6bc..1b211c3 100644
|
| |
- --- a/tests/plugins/test_pulp_tag.py
|
| |
- +++ b/tests/plugins/test_pulp_tag.py
|
| |
- @@ -150,7 +150,7 @@ def prepare(v1_image_ids={}):
|
| |
- return tasker, workflow
|
| |
-
|
| |
-
|
| |
- -@pytest.mark.skipif(dockpulp is None,
|
| |
- +@pytest.mark.skipif(dockpulp is None or not hasattr(dockpulp, "imgutils"),
|
| |
- reason='dockpulp module not available')
|
| |
- @pytest.mark.parametrize(("v1_image_ids", "should_raise"), [
|
| |
- ({'x86_64': None, 'ppc64le': None}, False),
|
| |
- @@ -194,7 +194,7 @@ def test_pulp_tag_basic(tmpdir, monkeypatch, v1_image_ids, should_raise, caplog)
|
| |
- assert results['pulp_tag'] == expected_results
|
| |
-
|
| |
-
|
| |
- -@pytest.mark.skipif(dockpulp is None,
|
| |
- +@pytest.mark.skipif(dockpulp is None or not hasattr(dockpulp, "imgutils"),
|
| |
- reason='dockpulp module not available')
|
| |
- def test_pulp_tag_source_secret(tmpdir, monkeypatch, caplog):
|
| |
- v1_image_ids = {'x86_64': None,
|
| |
- @@ -222,7 +222,7 @@ def test_pulp_tag_source_secret(tmpdir, monkeypatch, caplog):
|
| |
- assert results['pulp_tag'] == expected_results
|
| |
-
|
| |
-
|
| |
- -@pytest.mark.skipif(dockpulp is None,
|
| |
- +@pytest.mark.skipif(dockpulp is None or not hasattr(dockpulp, "imgutils"),
|
| |
- reason='dockpulp module not available')
|
| |
- def test_pulp_tag_service_account_secret(tmpdir, monkeypatch, caplog):
|
| |
- v1_image_ids = {'x86_64': None,
|
| |
- --
|
| |
- 2.14.3
|
| |
-
|
| |