From 347814f63d3799d3354c08086d9fb82df34acf65 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Sat, 14 Mar 2020 20:24:51 +0100
Subject: [PATCH] Skip pyconrad test not only on CI but always if pyconrad is
 not installed

---
 tests/test_projection.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_projection.py b/tests/test_projection.py
index 9562fa8..96f8159 100644
--- a/tests/test_projection.py
+++ b/tests/test_projection.py
@@ -88,9 +88,11 @@ def test_projection_backward(with_texture, with_backward):
         loss.backward()
 
 
-@pytest.mark.skipif('CI' in os.environ, reason="No conrad config on CI")
 @pytest.mark.parametrize('with_backward', ('with_backward', False))
 def test_conrad_config(with_backward, with_texture=True):
+    import pytest
+    pytest.importorskip("pyconrad")
+
     projector = pyronn_torch.ConeBeamProjector.from_conrad_config()
 
     volume = projector.new_volume_tensor(requires_grad=True if with_backward else False)
-- 
GitLab