Yann Weber
10379c6a95
Fieldgroups are deleted
9 years ago
Yann Weber
baeff1f7e6
Implements the EmClass::linked_type() method and add 2 new property method to EmField : em_class and fieldgroup
Associated tests has been added/updated
9 years ago
Yann Weber
384ffb006b
Default fields processing changes + updated the me.json
Now on load default fields for EmClass are created. The EmClass.check method create them if they are not present.
9 years ago
Yann Weber
94d4967642
Add common_fields and make the differences between common fields and default fields
9 years ago
Yann Weber
ad1beff75d
Added default fields for EmClass + fixing some tests and EmClass function that were broken
Added default fields for EmClass, they are listed by classtype in EmClassType
Fixing some tests (testing that a new EmClass has no fieldgroups)
Fixing the delete_check of EmClass. Now an EmClass can be deleted if it contains only default fieldgroup and default fields
9 years ago
ArnAud
6890375041
Databases: get rid of old and unused code
9 years ago
Roland Haroutiounian
35d9d698b2
PEP8/PyLint on test_classes.py
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
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
Driky
ac6f791508
Réimplémentation du test TestEmClassCreation
9 years ago
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
9 years ago
Yann Weber
166dc6ad75
Added docstrings comments to tests and fixed "false hidden failure"
Added docstrings comments to tests (for fancy output with -v ).
Fixed strange hidden failure that make tests stops on non failed tests with -f option. Those false failure seems to comes from with self.subTest blocs with functions calls that does assertion.
9 years ago
Yann Weber
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
9 years ago
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
9 years ago
ArnAud
caef4dd72f
EM test EmClass: test link_type() and linked_types()
9 years ago
ArnAud
c8d8c34710
EM: test classes : test for EmClass.fields()
9 years ago
ArnAud
007a04ca2a
EmClass: test of types(), use uid instead of id
9 years ago
ArnAud
c3e18b1aa9
EM test classes: test of EmClass.fielgroups()
9 years ago
ArnAud
b587f38e32
EM, test: test creation of EmClass
9 years ago