ArnAud
f303c0c241
start of lodel1 migration tool
преди 9 години
Yann Weber
ebad5fae54
Moving random EM generation methods in a dedicated file
Creating a class RandomEm in EditorialModel/randomem.py
преди 9 години
Yann Weber
abb700b0c0
Added 2 invalid params for emclass_from_name() method
преди 9 години
Yann Weber
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
преди 9 години
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
преди 9 години
Roland Haroutiounian
233ce905fc
PEP8/PyLint on test_model.py
преди 9 години
Roland Haroutiounian
73a01889d2
PEP8/PyLint on test_component.py
преди 9 години
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
преди 9 години
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
преди 9 години
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
преди 9 години
Roland Haroutiounian
71e588527c
PEP8/PyLint on fieldtype classes
преди 9 години
Roland Haroutiounian
352735200d
PEP8/PyLint on fieldtypes/char.py
преди 9 години
Roland Haroutiounian
5266c9ccf2
PEP8/PyLint on fieldtypes/bool.py
преди 9 години
Roland Haroutiounian
8058785023
PEP8/Pylint on components.py
преди 9 години
Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
преди 9 години
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
преди 9 години
Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
преди 9 години
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
a502965103
Bugfix on model
Make most of the model tests pass (except the tests about the backend calls and set)
преди 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
2dc226c65a
Fixed a bug in set_rank()
When the list is empty new_rank is > get_max_rank, because get_max_rank returns -1
преди 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 години
ArnAud
1911be866f
JsonBackend: add possibility to use a json string
преди 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 години
Yann Weber
f2027275e3
Addapt graphviz backend and random EM generator to changes on master branch
Mostly about the changes on types hierarchy
преди 9 години
Yann Weber
32975049d1
Use the kwargs parameter to tune generation
преди 9 години
Yann Weber
d405f0b41e
Added a random methods to EmModel to generate a random EM
преди 9 години
Yann Weber
a987b5b672
Added a method to create a random EM
преди 9 години
Yann Weber
be3d491ecc
Bugfix in some character escaping in graphviz backend
преди 9 години
Yann Weber
3b39b11f16
Add methos to classtype and type
преди 9 години
Yann Weber
00b2efda0d
Bufixes in fieldtypes
преди 9 години
ArnAud
9cc01fec46
EmComponent : lint + pep8
преди 9 години
ArnAud
4d1e687065
EmComponent : introduce attr_flat => reusable flattened attribut list of a component
преди 9 години
ArnAud
5f0f5dd3bf
EmComponent: convert attr_dump attribut to a method
преди 9 години
ArnAud
9b8bd12b65
Emtype-tests: whitespace and syntax error (lint + pep8)
преди 9 години
ArnAud
af878631a0
Emtype: whitespace and syntax error (lint + pep8)
преди 9 години
ArnAud
905b5d5c49
EmType: clean imports
преди 9 години
ArnAud
90fcecd015
EmComponent: make the __hash__ function always return the same hash !
преди 9 години