Yann Weber
06bd3b141d
Model construct enhancement with backend and MH inheritance
Every backend and MH are now subclasses of dummy ones. This allow to check the type with issubclass.
9 年之前
Roland Haroutiounian
063e202e60
[#54 ] revert
9 年之前
Roland Haroutiounian
a225a63d2e
[#54 ] Activated DjangoMigrationHandler to the tests of EmClass
9 年之前
Yann Weber
5bccb6bae2
Updates on Model tests
9 年之前
Yann Weber
7b1f3dca38
Add tests for Model
On create_component on delete_component on set_backend and on migrate_handler
9 年之前
Yann Weber
eba33c3ecb
Adding some tests for Model
9 年之前
Roland Haroutiounian
ebf07e197f
[#54 ] Code cleaning
9 年之前
Roland Haroutiounian
4b42aaf282
[#54 ] Deleted the use of an obsolete exception
9 年之前
Roland Haroutiounian
896c7821ce
[#54 ] added the migration handler in the testing process
9 年之前
Roland Haroutiounian
2813db64c5
[#54 ] Changed the test value for next id in the Editorial model used for tests
9 年之前
Roland Haroutiounian
6b6ea5e13b
[#54 ] Changed the tests for EmClass
9 年之前
Roland Haroutiounian
3bb0dc70e1
[#54 ] Changed the expected id of a newly created class in the TestEmClassCreation class
9 年之前
ArnAud
332e771411
EmComponent : test_component less verbose
9 年之前
Yann Weber
c37a5b5425
Put the django migration handler in dryrun (simulation) mode for EM tests
9 年之前
Yann Weber
58837a0ed4
Fix modify_rank and associated tests
Now modify_rank don't raise anymore when too big/small modifier is given but do its best to make a valid modification
The modify_rank tests (and the __hash__ __cmp__ tests) has been modified to fit this new behavior
9 年之前
Yann Weber
6fa5a2a7f6
Reimplementation of get_max_rank for EmComponent + little correction in hash test
9 年之前
ArnAud
9cc01fec46
EmComponent : lint + pep8
9 年之前
ArnAud
5f0f5dd3bf
EmComponent: convert attr_dump attribut to a method
9 年之前
ArnAud
9b8bd12b65
Emtype-tests: whitespace and syntax error (lint + pep8)
9 年之前
ArnAud
90fcecd015
EmComponent: make the __hash__ function always return the same hash !
9 年之前
ArnAud
6d0937d26e
EmType : rewrite of the tests for EmTypes
9 年之前
ArnAud
2e1c517f01
testMe : add a fieldgroup with only optional field in it
9 年之前
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 年之前
ArnAud
e57598690d
TestMe: add a type with no superior
9 年之前
ArnAud
2379d6031d
Tests: add an unselected optional field to test ME
9 年之前
Roland Haroutiounian
bd6fa1e0e9
[#49 ] deleted an obsolete commented import
9 年之前
Roland Haroutiounian
e4dfc1bb7a
[#49 ] Changes made in the unit tests for test_model
9 年之前
Yann Weber
0861aadc78
Add some tests to EmComponent
9 年之前
ArnAud
9131f7bcd2
EmField: type attribute is now called fieldtype
9 年之前
Roland Haroutiounian
eaf0520d3b
[#49 ] Changed the migration handler used in the tests for Model
9 年之前
ArnAud
a89cfa4429
EmType: use superiors_list instead of subordinates_list to save type hierarchy
9 年之前
ArnAud
7a97bc16fb
test ME: rank was not correct
9 年之前
Yann Weber
d199d571bd
Cleaning & commenting + adding warning
9 年之前
Yann Weber
5d71d29f91
Updated the me.json
9 年之前
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 年之前
Yann Weber
9d77bb6a52
Rewrite tests for EmComponent and Model
9 年之前
Roland Haroutiounian
1b3565d890
[Tests EmComponent] Added the support of MlString in check_equals
9 年之前
Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
9 年之前
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 年之前
Roland Haroutiounian
79b0369007
[Tests EmComponent]
9 年之前
Roland Haroutiounian
ee9a082f42
[Tests - EmComponent] Tests on the init process
9 年之前
Roland Haroutiounian
615e0e8f86
[Tests - EmFieldGroup] Cleaned old and useless comments in the code
9 年之前
Roland Haroutiounian
a9cbd03e17
[Tests - EmFieldGroup] Rewrote the tests for the fields() method of the class
9 年之前
Driky
ac6f791508
Réimplémentation du test TestEmClassCreation
9 年之前
Roland Haroutiounian
e4038f4f3a
[Tests on EmFieldgroup] Added the creation process tests for this class
9 年之前
Roland Haroutiounian
f1d819c254
[EmFieldGroup] Changed the assertions for the init tests with bad arguments
9 年之前
Roland Haroutiounian
03113ae8bf
Changes in the tests for the fieldgroups
9 年之前
Roland Haroutiounian
ba2ac6880c
[Tests] Changed the tests for the EmField class using the new Model object
9 年之前
ArnAud
34fdd8d8b3
EmType: implement select and unselect _field
9 年之前
ArnAud
886cee22df
EmType : subordinates_list and fields_list
9 年之前