Roland Haroutiounian
ba2ac6880c
[Tests] Changed the tests for the EmField class using the new Model object
9 years ago
Yann Weber
889abc8547
Put the database configuration asinstance attribute of EmComponent
9 years ago
Yann Weber
6af0b45f3f
Code factorization on EmType select and unselect fields. Added comparison capabilities to EmComponent (and childs)
Implemented __hash__ and __eq__ for EmComponent (based on class name and uid) to test equality betwenn two instance. Allows to use "instance in instance_list" syntax
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
4fb2f789b5
Replacing EmComponent method getDbE by db_engine
9 years ago
Yann Weber
503ecd570b
Some tests dont pass, but most of them does
10 years ago
Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
10 years ago
Yann Weber
a042306c14
Delete implementation for EmClass and EmField
The EmField version cannot be tested yet (drop column not yet implemented for sqlite in Database.sqlalter)
10 years ago
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
10 years ago
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
10 years ago
Roland Haroutiounian
1ab80e9b1c
[#11 ] Suppression de tests inutiles dans test_field
10 years ago
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
10 years ago
Roland Haroutiounian
62d2a978fb
[#11 ] Finalisation des tests sur Field (debuggage du process de test)
10 years ago
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
10 years ago
Roland Haroutiounian
9181acb0b2
[#12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
10 years ago
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
10 years ago
Roland Haroutiounian
0751eb26e8
[#12 ] Modification du setup de test pour test_field
10 years ago
Roland Haroutiounian
b69b21b431
[#12 ] debug
10 years ago
Roland Haroutiounian
2a9335f202
[#12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
10 years ago
Roland Haroutiounian
f13b6f844d
[#12 ] Ajout de la class Em_Field_Type et du select_field
10 years ago
Roland Haroutiounian
e6f6720a57
[#11 ] Ajout des premiers tests sur EmField
10 years ago