Roland Haroutiounian
c017ae793e
[ #11 ] Implémentation du _fields dans EmField
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
99ca81cdc3
[ #11 ] Correction sur le champ identifiant des fieldgroup dans la définition d'un field
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
4b32798c49
[ #11 ] Nettoyage de code
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
ef00ce2250
[ #11 ] Correction pour l'argument du From
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
6442a85014
[ #11 ] Modification du passage d'arguments sur la méthode create de components
2015-06-19 10:31:58 +02:00
Roland Haroutiounian
21f79a9301
[ #11 ] Ajout de la génération de la colonne du Field dans la table correspondante
2015-06-19 10:31:58 +02:00
Yann
5340fde711
Added tests for EmComponent's delete() function
2015-06-19 10:07:17 +02:00
ArnAud
c3e18b1aa9
EM test classes: test of EmClass.fielgroups()
2015-06-19 09:25:07 +02:00
Yann
6c8b10955d
Cleaning and optimizing tests
...
Cleaning code for EmComponent
Optimizing tests for EmComponent and EmFieldGroup (running initDb in setUpModule and make a backup copy, the backup is restored in setUp)
2015-06-18 17:02:58 +02:00
Yann
80e82073fc
Bugfixes on EmComponent
...
- Now except for the modify_rank tests test_component didn't fails
- Added simple integer operation capabilities to EmFieldType_integer ( int cast, +=, -=, *=, /=, +, -, *, /, %, ...)
2015-06-18 16:10:55 +02:00
ArnAud
b587f38e32
EM, test: test creation of EmClass
2015-06-18 15:55:12 +02:00
Yann
690b68d714
Small bugfix in components.py
2015-06-18 14:41:21 +02:00
Yann
c74f65ac55
Normalize comments for MlString
2015-06-18 14:36:32 +02:00
Yann
e8a2362d21
Normalize comments for EmFieldGroups
2015-06-18 14:28:32 +02:00
Yann
ff72825720
Normalize comments for components.py
2015-06-18 14:18:55 +02:00
Yann
94e8474185
Bugfixes is some tests
2015-06-18 13:47:58 +02:00
Yann
25e5858ba2
Syntax error fixes
2015-06-18 13:47:58 +02:00
Yann
69f948affd
Added test for create, init and fields
...
Maybe very bugy
2015-06-18 13:47:58 +02:00
Yann
c4ed3ee8de
First commit for EmFieldGroup tests
...
Written some test setup and the begining of the __init__ test
2015-06-18 13:47:58 +02:00
Yann
e79e583dfd
Bugfix in EmFieldGroup
...
- Added a _fields property (also added it as class property, but the way its done is not satisfactory... we want an ordered dict and not a tuple list as class property)
- Its now allowed to give an uid or a name as em_class for EmFieldGroup.create(name, em_class).
- Now when EmFieldGroup.create is called with an existing name it raises an error (ValueError)
- Removed EmFieldGroup.populate and EmFieldGroup.save
2015-06-18 13:46:49 +02:00
Yann
712a2710a0
Added __eq__ to MlString
...
Now an MlString instance is able to say if another MlString instance is equivalent using mlstr1 == mlstr2
2015-06-18 13:40:06 +02:00
Yann
a9757a4672
Disabling annoying warnings in sqlwrapper and fixing a bug in test_components
...
Using sqlite db in test_components
2015-06-18 11:58:06 +02:00
ArnAud
ac6a2883f2
EmComponents: close db connexion after fetching (sqlite issue)
2015-06-18 11:26:10 +02:00
Yann
97c6b41e88
Close #31
...
EmComponent.create() now takes keywords arguments corresponding to the _fields property of the calling class
WARNING !!! Hardcoded rank = -1 at component creation and Hardcoded 0 as default value for EmClass icon
2015-06-17 17:07:18 +02:00
Yann
a27f735b48
Writed tests from EmComponent.create()
2015-06-17 14:12:53 +02:00
Driky
615bfc5a81
EM Component.py Commentaire
...
Correction du bloc de mcommentaire de class encore sous l'ancien modèle.
2015-06-17 13:54:49 +02:00
Driky
a611b08e37
EM Component.py modify_rank
...
remplacement des self.id restant par self.uid
2015-06-17 13:51:11 +02:00
Yann
e3b4e6ee74
Modified EmComponent's tests to fit with the new EmComponent class
...
Changed id in uid and changed the dummy class for testing
2015-06-17 12:16:45 +02:00
Yann
7e8414c162
Close ticket #29 and bugfix
...
Now EmComponent is populate if it's instanciated with a name or an id
2015-06-17 11:59:39 +02:00
ArnAud
460e6449fb
Merge test and "data fields in a dict"
2015-06-17 09:35:57 +02:00
Yann
b0aac9e557
Adding tests for EmComponent
2015-06-12 17:26:12 +02:00
Yann
9ff45c97a0
Some code formating
2015-06-12 17:23:04 +02:00
Yann
9e27610b40
Added modify_rank test, done some refactoring and updated runtest utils script
...
runtest script has now comments inside showing usefull options to run tests
2015-06-12 16:47:38 +02:00
Driky
7fc1260ffc
Mr correction is here
2015-06-12 15:40:10 +02:00
ArnAud
76da309f4c
EM: put data fields in a dict, simplify save() and populate()
2015-06-12 14:09:16 +02:00
Yann
3875d5b9bb
Added more tests
...
Added tests for newUid, __init__, save and modify_rank
2015-06-12 14:05:20 +02:00
Yann
fdb7674e93
First commit for EmComponent test
...
Written test environment init
Written test for newUid and __init__
2015-06-12 14:05:20 +02:00
Driky
64fd3317a6
Correction #13542113
2015-06-12 14:05:03 +02:00
Driky
0c5301a235
Super corrector a la rescousse
2015-06-12 13:56:37 +02:00
Driky
8e501346c5
Correction plz!
2015-06-12 13:44:11 +02:00
Driky
3c85c90fe1
Correction once again
2015-06-12 12:31:21 +02:00
Driky
e9c7b5ebf4
Correction :-(
2015-06-12 12:25:29 +02:00
Driky
f4c195f44c
Correction again
2015-06-12 12:13:11 +02:00
Driky
48f286cf30
Correction encoooore
2015-06-12 12:11:15 +02:00
Driky
d5baff9249
Encore des correction
2015-06-12 12:09:26 +02:00
Driky
f93e226b66
Component.modify_ran() correction
...
Pass the value of ranked_in instaed of the column name.
2015-06-12 12:03:05 +02:00
Driky
79268ca418
Component.new_rank() correction
...
same as precedent
2015-06-12 11:44:54 +02:00
Driky
350d15cba9
Component.new_rank() correction
...
test si new_rank - 1 existe pour signe '='
2015-06-12 11:41:09 +02:00
Driky
0bdf755be4
Component.new_rank() correction
...
En cas de signe égale prend désormais en charge une valeur de new_rank superieur ou inferieur a la valeur actuelle.
2015-06-12 11:26:46 +02:00
Driky
2e1fb44d26
Component.new_rank() correction
...
En plus de modifié la valeur en base, modifie la valeur d'instance.
2015-06-12 11:05:39 +02:00