1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2026-06-16 15:30:49 +02:00
Commit graph

14 commits

Author SHA1 Message Date
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
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
Yann
503ecd570b Some tests dont pass, but most of them does 2015-06-26 17:41:57 +02:00
ArnAud
b7eb53c98a ME test: changement de nom de fonction : new_uid 2015-06-26 12:20:07 +02:00
ArnAud
96bfee8baa test, fieldgroups: no use of subtest 2015-06-25 17:14:19 +02:00
Yann
302382d488 Created EditorialModel tests database utilities 2015-06-19 14:27:40 +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
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