server/test/data-migractions/cubes/fakecustomtype/schema.py
author David Douard <david.douard@logilab.fr>
Wed, 25 May 2016 17:43:53 +0200
changeset 11262 25f9a76ddf50
parent 11006 096adb786873
permissions -rw-r--r--
[test] add a test to ensure we get an AuthenticationError with ldapfeed when using (correct login, wrong password) credentials
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10999
adc46197b8c9 [migration] test addition of a cube providing a custom final type
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
adc46197b8c9 [migration] test addition of a cube providing a custom final type
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
from yams.buildobjs import EntityType, make_type
adc46197b8c9 [migration] test addition of a cube providing a custom final type
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
11006
096adb786873 [migration/test] use numeric(precision, scale) instead of geometry
Julien Cristau <julien.cristau@logilab.fr>
parents: 10999
diff changeset
     4
Numeric = make_type('Numeric')
10999
adc46197b8c9 [migration] test addition of a cube providing a custom final type
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     5
adc46197b8c9 [migration] test addition of a cube providing a custom final type
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     6
class Location(EntityType):
11006
096adb786873 [migration/test] use numeric(precision, scale) instead of geometry
Julien Cristau <julien.cristau@logilab.fr>
parents: 10999
diff changeset
     7
    num = Numeric(scale=10, precision=18)