ArnAud
f303c0c241
start of lodel1 migration tool
2015-10-08 10:43:55 +02:00
ArnAud
6d3ca3e6a9
MlString: __repr__() now return __str__()
2015-10-08 10:41:24 +02:00
Yann
ebad5fae54
Moving random EM generation methods in a dedicated file
...
Creating a class RandomEm in EditorialModel/randomem.py
2015-10-01 13:49:23 +02:00
Yann
abb700b0c0
Added 2 invalid params for emclass_from_name() method
2015-10-01 12:13:18 +02:00
Yann
ea51650ab3
Added tests on Types hierarchy and selected field for migrate_handler() method
2015-10-01 12:10:47 +02:00
Roland Haroutiounian
2ea37c3112
PEP8/PyLint on test_types.py
2015-09-30 15:00:40 +02:00
Roland Haroutiounian
233ce905fc
PEP8/PyLint on test_model.py
2015-09-30 14:59:45 +02:00
Roland Haroutiounian
73a01889d2
PEP8/PyLint on test_component.py
2015-09-30 14:50:44 +02:00
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
2015-09-30 14:49:40 +02:00
Roland Haroutiounian
bbe7a88842
PEP8/PyLint on migrationhandler/dummy.py
2015-09-30 14:47:44 +02:00
Roland Haroutiounian
d378a38bdf
PEP8 / PyLint on migrationhandler/django.py
2015-09-30 14:46:29 +02:00
Roland Haroutiounian
71e588527c
PEP8/PyLint on fieldtype classes
2015-09-30 14:16:45 +02:00
Roland Haroutiounian
352735200d
PEP8/PyLint on fieldtypes/char.py
2015-09-30 14:10:27 +02:00
Roland Haroutiounian
5266c9ccf2
PEP8/PyLint on fieldtypes/bool.py
2015-09-30 14:09:12 +02:00
Roland Haroutiounian
8058785023
PEP8/Pylint on components.py
2015-09-30 12:02:29 +02:00
Roland Haroutiounian
33a7b6c4a4
PEP8/Pylint on types.py
2015-09-30 11:58:11 +02:00
Roland Haroutiounian
49f4f210b6
Code cleaning (PEP8 / Pylint) on fields.py
2015-09-30 11:54:14 +02:00
Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
2015-09-30 11:45:37 +02:00
Yann
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.
2015-09-25 17:29:18 +02:00
Roland Haroutiounian
063e202e60
[ #54 ] revert
2015-09-25 17:04:21 +02:00
Roland Haroutiounian
a225a63d2e
[ #54 ] Activated DjangoMigrationHandler to the tests of EmClass
2015-09-25 17:00:18 +02:00
Yann
a502965103
Bugfix on model
...
Make most of the model tests pass (except the tests about the backend calls and set)
2015-09-25 16:57:11 +02:00
Yann
5bccb6bae2
Updates on Model tests
2015-09-25 16:56:56 +02:00
Yann
7b1f3dca38
Add tests for Model
...
On create_component on delete_component on set_backend and on migrate_handler
2015-09-25 16:40:15 +02:00
Yann
2dc226c65a
Fixed a bug in set_rank()
...
When the list is empty new_rank is > get_max_rank, because get_max_rank returns -1
2015-09-25 16:40:15 +02:00
Yann
eba33c3ecb
Adding some tests for Model
2015-09-25 16:40:15 +02:00
Roland Haroutiounian
ebf07e197f
[ #54 ] Code cleaning
2015-09-24 17:14:57 +02:00
Roland Haroutiounian
a71fd7293f
Merge branch 't54'
2015-09-24 16:58:57 +02:00
Roland Haroutiounian
4b42aaf282
[ #54 ] Deleted the use of an obsolete exception
2015-09-24 16:45:59 +02:00
Roland Haroutiounian
896c7821ce
[ #54 ] added the migration handler in the testing process
2015-09-24 16:16:23 +02:00
Roland Haroutiounian
2813db64c5
[ #54 ] Changed the test value for next id in the Editorial model used for tests
2015-09-24 16:13:43 +02:00
Roland Haroutiounian
6b6ea5e13b
[ #54 ] Changed the tests for EmClass
2015-09-24 16:13:43 +02:00
Roland Haroutiounian
3bb0dc70e1
[ #54 ] Changed the expected id of a newly created class in the TestEmClassCreation class
2015-09-24 16:13:43 +02:00
ArnAud
b2fc148e08
README : install documentation for test
2015-09-24 16:11:04 +02:00
ArnAud
332e771411
EmComponent : test_component less verbose
2015-09-24 15:45:37 +02:00
ArnAud
d34eb72490
Add a lint script used to test pep8 and lint error
...
usage ./lint path/to/file.py
2015-09-24 15:38:44 +02:00
ArnAud
1911be866f
JsonBackend: add possibility to use a json string
2015-09-24 15:38:11 +02:00
Yann
c37a5b5425
Put the django migration handler in dryrun (simulation) mode for EM tests
2015-09-24 15:37:08 +02:00
Yann
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
2015-09-24 15:28:25 +02:00
Yann
6fa5a2a7f6
Reimplementation of get_max_rank for EmComponent + little correction in hash test
2015-09-24 15:01:18 +02:00
Yann
f2027275e3
Addapt graphviz backend and random EM generator to changes on master branch
...
Mostly about the changes on types hierarchy
2015-09-24 14:36:19 +02:00
Yann
8ed5b666a9
Added a manage.py command to generate random EM
2015-09-24 14:36:19 +02:00
Yann
32975049d1
Use the kwargs parameter to tune generation
2015-09-24 14:36:19 +02:00
Yann
cedf457ee0
Bugfix on instanciation and infinit grows of translations
2015-09-24 14:36:19 +02:00
Yann
d405f0b41e
Added a random methods to EmModel to generate a random EM
2015-09-24 14:36:19 +02:00
Yann
a987b5b672
Added a method to create a random EM
2015-09-24 14:36:19 +02:00
Yann
be3d491ecc
Bugfix in some character escaping in graphviz backend
2015-09-24 14:36:19 +02:00
Yann
3b39b11f16
Add methos to classtype and type
2015-09-24 14:36:19 +02:00
Yann
00b2efda0d
Bufixes in fieldtypes
2015-09-24 14:36:19 +02:00
ArnAud
9cc01fec46
EmComponent : lint + pep8
2015-09-24 14:35:46 +02:00