[PATCH 2 of 3 seda] [test] Drop useless fixture

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Mar 29 11:11:10 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1490773974 -7200
#      Wed Mar 29 09:52:54 2017 +0200
# Node ID 09efe180fc2c5c7522f6eadec30461641daed480
# Parent  cb9c3c2a559c7c8676c55b5df626a05306619335
[test] Drop useless fixture

Its tests are fine under the ValidationHooksTC umbrella.

diff --git a/test/test_hooks.py b/test/test_hooks.py
--- a/test/test_hooks.py
+++ b/test/test_hooks.py
@@ -57,14 +57,10 @@ class ValidationHooksTC(CubicWebTC):
             self.assertIn('seda_ref_non_rule_id_to-subject', cm.exception.errors)
 
             non_rule.cw_set(seda_ref_non_rule_id_to=access_concept)
             cnx.commit()
 
-
-class NotEmptyChoiceTC(CubicWebTC):
-    """Test case checking that xsd:choice elements cannot be empty."""
-
     def test_empty_choice_created(self):
         """Check that a ValidationError is raised when an empty SEDAAlt... entity is created."""
         with self.admin_access.client_cnx() as cnx:
             # Create an empty SEDAAltAccessRulePreventInheritance
             transfer = cnx.create_entity('SEDAArchiveTransfer', title=u'test profile')


More information about the saem-devel mailing list