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
Yann Weber
166dc6ad75
Added docstrings comments to tests and fixed "false hidden failure"
Added docstrings comments to tests (for fancy output with -v ).
Fixed strange hidden failure that make tests stops on non failed tests with -f option. Those false failure seems to comes from with self.subTest blocs with functions calls that does assertion.
9 years ago
Yann Weber
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
9 years ago
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
9 years ago
Yann Weber
65b10a6c5d
Added some tests to tests_types.py
Added hierarchy tests
9 years ago
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
9 years ago
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
9 years ago
ArnAud
b7eb53c98a
ME test: changement de nom de fonction : new_uid
9 years ago
Roland Haroutiounian
f503dab46a
Implémentation d'un test sur le delete de type
9 years ago
Yann Weber
a042306c14
Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
9 years ago
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
9 years ago
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
9 years ago