Yann Weber
16a962fb3f
Implemented DropColumn for sqlite
9 vuotta sitten
ArnAud
b7eb53c98a
ME test: changement de nom de fonction : new_uid
9 vuotta sitten
Roland Haroutiounian
f503dab46a
Implémentation d'un test sur le delete de type
9 vuotta sitten
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 vuotta sitten
Yann Weber
6359adc0f4
Added tests for EmField.delete() and EmClass.delete()
Also add a new function is sqlutils to execute ddl
10 vuotta sitten
Roland Haroutiounian
1d66177f8a
Suppression du rel_to_type dans le test EmField create
10 vuotta sitten
Roland Haroutiounian
61893313af
Tests EmType
10 vuotta sitten
ArnAud
96bfee8baa
test, fieldgroups: no use of subtest
10 vuotta sitten
Roland Haroutiounian
31e5448694
Ajout des tests sur la classe EmType
10 vuotta sitten
Roland Haroutiounian
1ab80e9b1c
[#11 ] Suppression de tests inutiles dans test_field
10 vuotta sitten
ArnAud
caef4dd72f
EM test EmClass: test link_type() and linked_types()
10 vuotta sitten
Roland Haroutiounian
d9c3f8e86c
[#11 ] Modification de la méthode create => passage en arguments positionnels
10 vuotta sitten
Roland Haroutiounian
62d2a978fb
[#11 ] Finalisation des tests sur Field (debuggage du process de test)
10 vuotta sitten
Roland Haroutiounian
0418bd4895
[#12 ] Modification et débuggage sur le process de création de fields
10 vuotta sitten
Roland Haroutiounian
9181acb0b2
[#12 ] Modification sur le nom de la base de test (avant passage à la classe test utils)
10 vuotta sitten
Roland Haroutiounian
e9d49533f2
[#12 ] Correctifs sur le populate et le save de EmField
10 vuotta sitten
Roland Haroutiounian
0751eb26e8
[#12 ] Modification du setup de test pour test_field
10 vuotta sitten
Roland Haroutiounian
b69b21b431
[#12 ] debug
10 vuotta sitten
Yann Weber
302382d488
Created EditorialModel tests database utilities
10 vuotta sitten
ArnAud
c8d8c34710
EM: test classes : test for EmClass.fields()
10 vuotta sitten
Roland Haroutiounian
2a9335f202
[#12 ] Déplacement des méthodes select_field et unselect_field de fields vers types
10 vuotta sitten
Roland Haroutiounian
f13b6f844d
[#12 ] Ajout de la class Em_Field_Type et du select_field
10 vuotta sitten
Yann Weber
00614d90e9
New way to specify _fields and table in EmComponent's child classes
Now _fields and table MUST be class attribute.
Its important to note that _fields now consist in a list of (name, ftype) tuples and that ftype is a EmFieldType class and NOT an EmFieldType instance
10 vuotta sitten
ArnAud
007a04ca2a
EmClass: test of types(), use uid instead of id
10 vuotta sitten
Roland Haroutiounian
e6f6720a57
[#11 ] Ajout des premiers tests sur EmField
10 vuotta sitten
Yann Weber
5340fde711
Added tests for EmComponent's delete() function
10 vuotta sitten
ArnAud
c3e18b1aa9
EM test classes: test of EmClass.fielgroups()
10 vuotta sitten
Yann Weber
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)
10 vuotta sitten
Yann Weber
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, +=, -=, *=, /=, +, -, *, /, %, ...)
10 vuotta sitten
ArnAud
b587f38e32
EM, test: test creation of EmClass
10 vuotta sitten
Yann Weber
94e8474185
Bugfixes is some tests
10 vuotta sitten
Yann Weber
25e5858ba2
Syntax error fixes
10 vuotta sitten
Yann Weber
69f948affd
Added test for create, init and fields
Maybe very bugy
10 vuotta sitten
Yann Weber
c4ed3ee8de
First commit for EmFieldGroup tests
Written some test setup and the begining of the __init__ test
10 vuotta sitten
Yann Weber
a9757a4672
Disabling annoying warnings in sqlwrapper and fixing a bug in test_components
Using sqlite db in test_components
10 vuotta sitten
Yann Weber
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
10 vuotta sitten
Yann Weber
a27f735b48
Writed tests from EmComponent.create()
10 vuotta sitten
Yann Weber
e3b4e6ee74
Modified EmComponent's tests to fit with the new EmComponent class
Changed id in uid and changed the dummy class for testing
10 vuotta sitten
Yann Weber
9ff45c97a0
Some code formating
10 vuotta sitten
Yann Weber
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
10 vuotta sitten
Yann Weber
3875d5b9bb
Added more tests
Added tests for newUid, __init__, save and modify_rank
10 vuotta sitten
Yann Weber
fdb7674e93
First commit for EmComponent test
Written test environment init
Written test for newUid and __init__
10 vuotta sitten
ArnAud
a86ff9ee97
ME : renommage et import
10 vuotta sitten
Yann Weber
ebdb512500
Modification to be less dependent to django + logging in db wrapper
10 vuotta sitten
Yann Weber
18c497a27b
Fixing tests name to actually make them run
Test functions name as tests files name must begin with test in order to be run by manage.py test
10 vuotta sitten