[PATCH 06 of 11 saem_ref] Drop fallback about missing of postgres support in test_ccplugin.py

Denis Laxalde denis.laxalde at logilab.fr
Mon Feb 12 15:20:42 CET 2018


# HG changeset patch
# User Denis Laxalde <denis.laxalde at logilab.fr>
# Date 1518421159 -3600
#      Mon Feb 12 08:39:19 2018 +0100
# Node ID 3c72046c3ed6ef2ed369a7a8a5fba28a830d8add
# Parent  078d839a8d1071daaa9721587b09e636f27559aa
# Available At http://hg.logilab.org/review/cubes/saem_ref
#              hg pull http://hg.logilab.org/review/cubes/saem_ref -r 3c72046c3ed6
# EXP-Topic ark/postgres-generated
Drop fallback about missing of postgres support in test_ccplugin.py

diff --git a/test/test_ccplugin.py b/test/test_ccplugin.py
--- a/test/test_ccplugin.py
+++ b/test/test_ccplugin.py
@@ -18,16 +18,13 @@
 import sys
 from io import BytesIO, StringIO
 
-from cubicweb.devtools import testlib
+from cubicweb.devtools import (
+    PostgresApptestConfiguration,
+    testlib,
+)
 from cubicweb.cwconfig import CubicWebConfiguration
-try:
-    from cubicweb.devtools import PostgresApptestConfiguration
-except ImportError as exc:
-    import pytest
-    pytestmark = pytest.mark.skipif(True, reason=str(exc))
-else:
-    from cubicweb_eac import ccplugin
 
+from cubicweb_eac import ccplugin
 from cubes.skos import ccplugin as skos
 
 import testutils



More information about the saem-devel mailing list