Roland Haroutiounian
fd87cd8619
[Tests EmComponent] Started the implementation of the create process
2015-07-31 17:11:46 +02:00
Roland Haroutiounian
8e12772546
[Tests - EmComponent] Added the reimplementation of the tests for the save method
...
It should be adjusted once the save method is implemented
2015-07-31 16:04:54 +02:00
Roland Haroutiounian
79b0369007
[Tests EmComponent]
2015-07-31 13:48:15 +02:00
Roland Haroutiounian
ee9a082f42
[Tests - EmComponent] Tests on the init process
2015-07-31 10:12:45 +02:00
Yann
889abc8547
Put the database configuration asinstance attribute of EmComponent
2015-07-09 17:30:21 +02:00
Roland Haroutiounian
b03958a65a
Suppression de sqlutils.getEngine au profit de sqlutils.get_engine
2015-07-02 17:03:54 +02:00
Yann
49dfe9ad03
Code factorization on EmComponent.modify_rank()
...
Changed beahvior : when a 'non-change' is asked (like +0 -0 or set ranke to actual rank) don't raise an Error
2015-07-02 16:43:23 +02:00
Yann
f41d164603
Added test for EmComponent.get_max_rank(), replacing the default value for rank by the one processed by get_max_rank
2015-07-02 15:58:17 +02:00
Yann
27d178e531
Code factorization and create methods for EmComponent and childs changes
...
Behaviour changed for EmComponent and childs create method :
- Takes care of duplicated names at creation
- Handle all the checks in EmComponent method
Factorization of EmField.get_class_table() method
Added a @property method class_table_name to EmClass
2015-07-02 13:38:15 +02:00
Yann
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.
2015-07-02 11:03:04 +02:00
Yann
a3b9daf319
sqlwrapper deletion and sqlsetup enhancement
...
Moved the database initialisation functionnality to sqlsetup and fixed all the code to handle the sqlwrapper deletion
2015-07-01 16:22:10 +02:00
ArnAud
b7eb53c98a
ME test: changement de nom de fonction : new_uid
2015-06-26 12:20:07 +02:00
Yann
302382d488
Created EditorialModel tests database utilities
2015-06-19 14:27:40 +02:00
Yann
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
2015-06-19 12:29:19 +02:00
Yann
5340fde711
Added tests for EmComponent's delete() function
2015-06-19 10:07:17 +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
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
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
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
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
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
ArnAud
a86ff9ee97
ME : renommage et import
2015-05-29 17:09:10 +02:00
Yann
ebdb512500
Modification to be less dependent to django + logging in db wrapper
2015-05-27 15:05:05 +02:00
Yann
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
2015-05-27 11:20:25 +02:00