[PATCH 2 of 3 saem_ref] [test/security] Add more test about users being able to modify vocabularies

Sylvain Thenault sylvain.thenault at logilab.fr
Mon Apr 10 17:50:49 CEST 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1491831427 -7200
#      Mon Apr 10 15:37:07 2017 +0200
# Node ID d9321a717e44617f8c70f334591b25623d50c0d7
# Parent  9bf0d4951f012022e1a5e0ec6d305f0d35062659
[test/security] Add more test about users being able to modify vocabularies

created by others

diff --git a/test/test_security.py b/test/test_security.py
--- a/test/test_security.py
+++ b/test/test_security.py
@@ -65,10 +65,14 @@ class NonManagerUserTC(CubicWebTC):
             cnx.commit()
             scheme.cw_set(code_keyword_type=None)
             cnx.commit()
 
             admin_scheme = cnx.entity_from_eid(admin_scheme.eid)
+            admin_scheme.cw_set(title=u'code keyword types')
+            cnx.commit()
+            admin_scheme.add_concept(u'type2')
+            cnx.commit()
             admin_scheme.cw_set(code_keyword_type=type_concept)
             cnx.commit()
 
     def test_create_update_agent_in_own_organization(self):
         with self.admin_access.cnx() as cnx:


More information about the saem-devel mailing list