[PATCH 1 of 2 seda] [test] Move some cases into a separated class

Sylvain Thenault sylvain.thenault at logilab.fr
Thu Dec 14 14:34:58 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1513258349 -3600
#      Thu Dec 14 14:32:29 2017 +0100
# Node ID 87199226a0916ac69652ef2e51ac193e15128544
# Parent  ad4051ee66b9934d56cd8f57742b451b74793326
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r 87199226a091
[test] Move some cases into a separated class

because they don't need the heavy setup of the former class.

diff --git a/test/test_profile_generation.py b/test/test_profile_generation.py
--- a/test/test_profile_generation.py
+++ b/test/test_profile_generation.py
@@ -925,10 +925,13 @@ class OldSEDARNGExportTC(RelaxNGTestMixi
         self._test_profile('SEDA-1.0.rng', 'seda_1_export.rng')
 
     def test_seda_0_2_rng(self):
         self._test_profile('SEDA-0.2.rng', 'seda_02_export.rng')
 
+
+class OldSEDAExportTC(RelaxNGTestMixin, CubicWebTC):
+
     def test_seda_0_2_bordereau_ref(self):
         """Check a sample SEDA 0.2 profile validation."""
         with self.admin_access.cnx() as cnx:
             create = cnx.create_entity
 


More information about the saem-devel mailing list