Yann Weber
abb700b0c0
Added 2 invalid params for emclass_from_name() method
9 years ago
Yann Weber
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
9 years ago
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
9 years ago
Roland Haroutiounian
233ce905fc
PEP8/PyLint on test_model.py
9 years ago
Roland Haroutiounian
73a01889d2
PEP8/PyLint on test_component.py
9 years ago
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
9 years ago
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 years ago
Roland Haroutiounian
063e202e60
[#54 ] revert
9 years ago
Roland Haroutiounian
a225a63d2e
[#54 ] Activated DjangoMigrationHandler to the tests of EmClass
9 years ago
Yann Weber
5bccb6bae2
Updates on Model tests
9 years ago
Yann Weber
7b1f3dca38
Add tests for Model
On create_component on delete_component on set_backend and on migrate_handler
9 years ago
Yann Weber
eba33c3ecb
Adding some tests for Model
9 years ago
Roland Haroutiounian
ebf07e197f
[#54 ] Code cleaning
9 years ago
Roland Haroutiounian
4b42aaf282
[#54 ] Deleted the use of an obsolete exception
9 years ago
Roland Haroutiounian
896c7821ce
[#54 ] added the migration handler in the testing process
9 years ago
Roland Haroutiounian
2813db64c5
[#54 ] Changed the test value for next id in the Editorial model used for tests
9 years ago
Roland Haroutiounian
6b6ea5e13b
[#54 ] Changed the tests for EmClass
9 years ago
Roland Haroutiounian
3bb0dc70e1
[#54 ] Changed the expected id of a newly created class in the TestEmClassCreation class
9 years ago
ArnAud
332e771411
EmComponent : test_component less verbose
9 years ago
Yann Weber
c37a5b5425
Put the django migration handler in dryrun (simulation) mode for EM tests
9 years ago
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 years ago
Yann Weber
6fa5a2a7f6
Reimplementation of get_max_rank for EmComponent + little correction in hash test
9 years ago
ArnAud
9cc01fec46
EmComponent : lint + pep8
9 years ago
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