ArnAud
5f0f5dd3bf
EmComponent: convert attr_dump attribut to a method
9 years ago
ArnAud
9b8bd12b65
Emtype-tests: whitespace and syntax error (lint + pep8)
9 years ago
ArnAud
90fcecd015
EmComponent: make the __hash__ function always return the same hash !
9 years ago
ArnAud
6d0937d26e
EmType : rewrite of the tests for EmTypes
9 years ago
ArnAud
2e1c517f01
testMe : add a fieldgroup with only optional field in it
9 years ago
ArnAud
644f76b14d
Emtype: superiors_list should be a dict with list of int
=> a type can have multiple superiors (only instance of LeObject can have one)
9 years ago
ArnAud
e57598690d
TestMe: add a type with no superior
9 years ago
ArnAud
2379d6031d
Tests: add an unselected optional field to test ME
9 years ago
Roland Haroutiounian
bd6fa1e0e9
[#49 ] deleted an obsolete commented import
9 years ago
Roland Haroutiounian
e4dfc1bb7a
[#49 ] Changes made in the unit tests for test_model
9 years ago
Yann Weber
0861aadc78
Add some tests to EmComponent
9 years ago
ArnAud
9131f7bcd2
EmField: type attribute is now called fieldtype
9 years ago
Roland Haroutiounian
eaf0520d3b
[#49 ] Changed the migration handler used in the tests for Model
9 years ago
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 years ago
ArnAud
7a97bc16fb
test ME: rank was not correct
9 years ago
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 years ago
Yann Weber
5d71d29f91
Updated the me.json
9 years ago
Yann Weber
0dd07ea281
[Broken] Make the MH using the to_django method of EmField and me.json updates
Added a fieldtype varchar to me.json
There is a bug with django fields default values
9 years ago
Yann Weber
9d77bb6a52
Rewrite tests for EmComponent and Model
9 years ago
Roland Haroutiounian
1b3565d890
[Tests EmComponent] Added the support of MlString in check_equals
9 years ago
Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
9 years ago
Roland Haroutiounian
8e12772546
[Tests - EmComponent] Added the reimplementation of the tests for the save method
It should be adjusted once the save method is implemented
9 years ago
Roland Haroutiounian
79b0369007
[Tests EmComponent]
9 years ago
Roland Haroutiounian
ee9a082f42
[Tests - EmComponent] Tests on the init process
9 years ago
Roland Haroutiounian
615e0e8f86
[Tests - EmFieldGroup] Cleaned old and useless comments in the code
9 years ago
Roland Haroutiounian
a9cbd03e17
[Tests - EmFieldGroup] Rewrote the tests for the fields() method of the class
9 years ago
Driky
ac6f791508
Réimplémentation du test TestEmClassCreation
9 years ago
Roland Haroutiounian
e4038f4f3a
[Tests on EmFieldgroup] Added the creation process tests for this class
9 years ago
Roland Haroutiounian
f1d819c254
[EmFieldGroup] Changed the assertions for the init tests with bad arguments
9 years ago
Roland Haroutiounian
03113ae8bf
Changes in the tests for the fieldgroups
9 years ago
Roland Haroutiounian
ba2ac6880c
[Tests] Changed the tests for the EmField class using the new Model object
9 years ago
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
9 years ago
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 years ago
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 years ago
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
9 years ago
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
9 years ago
ArnAud
338bccd785
EmType: implement fieldgroups()
9 years ago
Yann Weber
6a56b31ba5
Migrating EmClass methods and EmComponent.delete according to the new Model object, changed the Model.components dict keys (and the json test file)
There is now two methods Model.name_from_emclass and emclass_from_name that allows to access the Model.components array
9 years ago
ArnAud
6f2d895462
EM: Model: store all components in one dict
9 years ago
ArnAud
71a1e852dc
EM: a canonical EM in json
9 years ago
ArnAud
e85e19c4b1
ME: basic ME for tests
9 years ago
ArnAud
55b030800f
Em: draft for fieldgroup
9 years ago
ArnAud
c73251795c
EM: first draft for a Model Class
9 years ago
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
9 years ago
Yann Weber
e757a3fb90
Doing todo
Added a dummy EmFieldType_icon
Added a test for EmType deletion with superiors
9 years ago
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
9 years ago
Yann Weber
49dfe9ad03
Code factorization on EmComponent.modify_rank()
Changed beahvior : when a 'non-change' is asked (like +0 -0 or set ranke to actual rank) don't raise an Error
9 years ago
Yann Weber
f41d164603
Added test for EmComponent.get_max_rank(), replacing the default value for rank by the one processed by get_max_rank
9 years ago
Yann Weber
6af0b45f3f
Code factorization on EmType select and unselect fields. Added comparison capabilities to EmComponent (and childs)
Implemented __hash__ and __eq__ for EmComponent (based on class name and uid) to test equality betwenn two instance. Allows to use "instance in instance_list" syntax
9 years ago
Yann Weber
27d178e531
Code factorization and create methods for EmComponent and childs changes
Behaviour changed for EmComponent and childs create method :
- Takes care of duplicated names at creation
- Handle all the checks in EmComponent method
Factorization of EmField.get_class_table() method
Added a @property method class_table_name to EmClass
9 years ago