ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 jaren geleden
ArnAud
7a97bc16fb
test ME: rank was not correct
9 jaren geleden
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 jaren geleden
Yann Weber
9d77bb6a52
Rewrite tests for EmComponent and Model
9 jaren geleden
Roland Haroutiounian
1b3565d890
[Tests EmComponent] Added the support of MlString in check_equals
9 jaren geleden
Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
9 jaren geleden
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 jaren geleden
Roland Haroutiounian
79b0369007
[Tests EmComponent]
9 jaren geleden
Roland Haroutiounian
ee9a082f42
[Tests - EmComponent] Tests on the init process
9 jaren geleden
Roland Haroutiounian
615e0e8f86
[Tests - EmFieldGroup] Cleaned old and useless comments in the code
9 jaren geleden
Roland Haroutiounian
a9cbd03e17
[Tests - EmFieldGroup] Rewrote the tests for the fields() method of the class
9 jaren geleden
Driky
ac6f791508
Réimplémentation du test TestEmClassCreation
9 jaren geleden
Roland Haroutiounian
e4038f4f3a
[Tests on EmFieldgroup] Added the creation process tests for this class
9 jaren geleden
Roland Haroutiounian
f1d819c254
[EmFieldGroup] Changed the assertions for the init tests with bad arguments
9 jaren geleden
Roland Haroutiounian
03113ae8bf
Changes in the tests for the fieldgroups
9 jaren geleden
Roland Haroutiounian
ba2ac6880c
[Tests] Changed the tests for the EmField class using the new Model object
9 jaren geleden
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
9 jaren geleden
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 jaren geleden
Yann Weber
b6ef37752f
Supressed _fields from EmComponent and transforming the EmComponent in a standart object with standarts attributes
9 jaren geleden
ArnAud
ee9104fd57
EmType : implement .fields()
comment selected_fields because it clashes with ._fields[]
=> we have to rethink of ._fields[] and fieldtypes
9 jaren geleden
ArnAud
f72799af24
EmFieldgroups: fields(self, type_id=0) can now filter fields for EmType request
9 jaren geleden
ArnAud
338bccd785
EmType: implement fieldgroups()
9 jaren geleden
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 jaren geleden
ArnAud
6f2d895462
EM: Model: store all components in one dict
9 jaren geleden
ArnAud
71a1e852dc
EM: a canonical EM in json
9 jaren geleden
ArnAud
e85e19c4b1
ME: basic ME for tests
9 jaren geleden
ArnAud
55b030800f
Em: draft for fieldgroup
9 jaren geleden
ArnAud
c73251795c
EM: first draft for a Model Class
9 jaren geleden
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
9 jaren geleden
Yann Weber
e757a3fb90
Doing todo
Added a dummy EmFieldType_icon
Added a test for EmType deletion with superiors
10 jaren geleden
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
10 jaren geleden
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
10 jaren geleden
Yann Weber
f41d164603
Added test for EmComponent.get_max_rank(), replacing the default value for rank by the one processed by get_max_rank
10 jaren geleden
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
10 jaren geleden
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
10 jaren geleden
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.
10 jaren geleden
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
10 jaren geleden
Yann Weber
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
10 jaren geleden
Yann Weber
65b10a6c5d
Added some tests to tests_types.py
Added hierarchy tests
10 jaren geleden
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
10 jaren geleden
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
10 jaren geleden
ArnAud
b7eb53c98a
ME test: changement de nom de fonction : new_uid
10 jaren geleden
Roland Haroutiounian
f503dab46a
Implémentation d'un test sur le delete de type
10 jaren geleden
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)
10 jaren geleden
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
10 jaren geleden
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
10 jaren geleden
Roland Haroutiounian
61893313af
Tests EmType
10 jaren geleden
ArnAud
96bfee8baa
test, fieldgroups: no use of subtest
10 jaren geleden
Roland Haroutiounian
31e5448694
Ajout des tests sur la classe EmType
10 jaren geleden
Roland Haroutiounian
1ab80e9b1c
[#11 ] Suppression de tests inutiles dans test_field
10 jaren geleden