test/data/uppered_rtype.py
author Vladimir Popescu <vladimir.popescu@logilab.fr>
Thu, 04 Apr 2013 11:58:41 +0200
changeset 8926 336e4971dc50
parent 6873 2db631a3f205
permissions -rw-r--r--
[dataimport] backout 6947201033be (related to #2788402) (and add a try: except to cache the intended error) The problem actually comes from the ``MassiveObjectStore`` in the ``dataio`` cube, so it should be corrected there. Here, we only protect it with a ``RuntimeWarning`` so that the user can see the problem. ``value`` is set to ``None`` (whence to ``NULL`` from a database standpoint), so that the data can be nevertheless inserted in the database. However, only the keys present in ``row`` are actually non-'``NULL``'. The real solution is to work out the issue in ``MassiveObjectStore`` directly. The current try/except should only be a temporary hack.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6873
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
from yams.buildobjs import RelationDefinition
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
class ARelation(RelationDefinition):
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
    subject = 'CWUser'
2db631a3f205 [schema test] fix tests broken by 6861:9d4e11d6e783 (missing data files and not removed deprecated/broken test)
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
    object = 'CWGroup'