Roland Haroutiounian
20c152c58b
PEP8/Pylint on classtypes.py
il y a 9 ans
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.
il y a 9 ans
Roland Haroutiounian
063e202e60
[#54 ] revert
il y a 9 ans
Roland Haroutiounian
a225a63d2e
[#54 ] Activated DjangoMigrationHandler to the tests of EmClass
il y a 9 ans
Yann Weber
a502965103
Bugfix on model
Make most of the model tests pass (except the tests about the backend calls and set)
il y a 9 ans
Yann Weber
5bccb6bae2
Updates on Model tests
il y a 9 ans
Yann Weber
7b1f3dca38
Add tests for Model
On create_component on delete_component on set_backend and on migrate_handler
il y a 9 ans
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
il y a 9 ans
Yann Weber
eba33c3ecb
Adding some tests for Model
il y a 9 ans
Roland Haroutiounian
ebf07e197f
[#54 ] Code cleaning
il y a 9 ans
Roland Haroutiounian
a71fd7293f
Merge branch 't54'
il y a 9 ans
Roland Haroutiounian
4b42aaf282
[#54 ] Deleted the use of an obsolete exception
il y a 9 ans
Roland Haroutiounian
896c7821ce
[#54 ] added the migration handler in the testing process
il y a 9 ans
Roland Haroutiounian
2813db64c5
[#54 ] Changed the test value for next id in the Editorial model used for tests
il y a 9 ans
Roland Haroutiounian
6b6ea5e13b
[#54 ] Changed the tests for EmClass
il y a 9 ans
Roland Haroutiounian
3bb0dc70e1
[#54 ] Changed the expected id of a newly created class in the TestEmClassCreation class
il y a 9 ans
ArnAud
b2fc148e08
README : install documentation for test
il y a 9 ans
ArnAud
332e771411
EmComponent : test_component less verbose
il y a 9 ans
ArnAud
d34eb72490
Add a lint script used to test pep8 and lint error
usage ./lint path/to/file.py
il y a 9 ans
ArnAud
1911be866f
JsonBackend: add possibility to use a json string
il y a 9 ans
Yann Weber
c37a5b5425
Put the django migration handler in dryrun (simulation) mode for EM tests
il y a 9 ans
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
il y a 9 ans
Yann Weber
6fa5a2a7f6
Reimplementation of get_max_rank for EmComponent + little correction in hash test
il y a 9 ans
Yann Weber
f2027275e3
Addapt graphviz backend and random EM generator to changes on master branch
Mostly about the changes on types hierarchy
il y a 9 ans
Yann Weber
8ed5b666a9
Added a manage.py command to generate random EM
il y a 9 ans
Yann Weber
32975049d1
Use the kwargs parameter to tune generation
il y a 9 ans
Yann Weber
cedf457ee0
Bugfix on instanciation and infinit grows of translations
il y a 9 ans
Yann Weber
d405f0b41e
Added a random methods to EmModel to generate a random EM
il y a 9 ans
Yann Weber
a987b5b672
Added a method to create a random EM
il y a 9 ans
Yann Weber
be3d491ecc
Bugfix in some character escaping in graphviz backend
il y a 9 ans
Yann Weber
3b39b11f16
Add methos to classtype and type
il y a 9 ans
Yann Weber
00b2efda0d
Bufixes in fieldtypes
il y a 9 ans
ArnAud
9cc01fec46
EmComponent : lint + pep8
il y a 9 ans
ArnAud
218d1f9afc
MlString: ensure __str__() will always output same string by ordering the keys
il y a 9 ans
ArnAud
4d1e687065
EmComponent : introduce attr_flat => reusable flattened attribut list of a component
il y a 9 ans
ArnAud
5f0f5dd3bf
EmComponent: convert attr_dump attribut to a method
il y a 9 ans
ArnAud
9b8bd12b65
Emtype-tests: whitespace and syntax error (lint + pep8)
il y a 9 ans
ArnAud
af878631a0
Emtype: whitespace and syntax error (lint + pep8)
il y a 9 ans
ArnAud
905b5d5c49
EmType: clean imports
il y a 9 ans
ArnAud
90fcecd015
EmComponent: make the __hash__ function always return the same hash !
il y a 9 ans
ArnAud
6d0937d26e
EmType : rewrite of the tests for EmTypes
il y a 9 ans
ArnAud
8b55bc54ed
EmModel : delete_component() return False if deletion is not possible
Also do not send change to MH if deletion is not done
il y a 9 ans
Roland Haroutiounian
d2d193e58f
[#50 ] Added the management of "integer" AND "int" in EmField (in the get_field_class method)
il y a 9 ans
ArnAud
ed48c64ab8
EmType: do not break while adding or deleting an unknown superior
il y a 9 ans
ArnAud
2e1c517f01
testMe : add a fieldgroup with only optional field in it
il y a 9 ans
Roland Haroutiounian
1bde3b6729
Merge branch 't49'
il y a 9 ans
Roland Haroutiounian
1f90b6f911
[#49 ] Changed the use of superiors in the migration handler
I put a for loop over the list to generate a foreign key for each item in the list.
il y a 9 ans
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)
il y a 9 ans
ArnAud
e57598690d
TestMe: add a type with no superior
il y a 9 ans
ArnAud
2379d6031d
Tests: add an unselected optional field to test ME
il y a 9 ans