1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-31 19:49:02 +01:00
Commit graph

127 commits

Author SHA1 Message Date
Yann
a306f4c054 More tests on LeObject, this time by mocking the queries classes 2016-06-10 16:54:24 +02:00
Yann
378dfd9766 More test + change 1 exception in LeObject 2016-06-10 16:43:53 +02:00
Yann
0b60023145 More tests on LeObject 2016-06-10 16:30:13 +02:00
Roland Haroutiounian
10e9f4d8ef skipped the unittest for the init_db 2016-06-10 16:22:30 +02:00
Roland Haroutiounian
3091533fd0 added tests for the migration_handler 2016-06-10 16:20:36 +02:00
prieto
a4dd1950e2 Name of exceptions 2016-06-10 15:30:30 +02:00
Yann
77d6fd8df5 More tests on LeOject 2016-06-10 15:12:01 +02:00
Yann
e278200414 More tests on LeObject 2016-06-10 15:05:24 +02:00
Yann
cccabc7ce4 More forgotten files 2016-06-10 14:47:24 +02:00
Yann
976d0c90c8 First tests on LeObjects 2016-06-10 14:46:38 +02:00
Yann
9da19f3665 Moved exceptions + LeUpdateQuery.__query implementation
- The LeUpdateQuery implementation is broken or at least have huge performance issue
- Moved LeObject exceptions and LeQuery exceptions in lodel.leapi.exceptions
2016-06-10 11:27:52 +02:00
Yann
30bc9eec08 Fixing test and EmClass
- Now returning automatic common field classname in fields method
2016-06-10 09:51:53 +02:00
Yann
e9f17eab6e Fixes #79 (and brokes tests of xml translator)
Adding a field to all non abstract classes to store in DB the name of corresponding LeObject subclass
2016-06-09 17:49:14 +02:00
Yann
83afc6b6dd Deleted datasources plugins and add a settings for datasources declaration
- now datasources are declared with two conf keys : read_only and identifier
- the old datasources plugin hook is now declared in lodel/plugin/core_hooks.py. This file is imported after lodel/plugin/hooks.py in the loader.py
2016-06-09 14:35:31 +02:00
Yann
afadd92b3d Fixing tests according to query new behaviour 2016-06-09 10:00:43 +02:00
prieto
b963d34cf1 Added tests plugins 2016-06-08 10:14:52 +02:00
Yann
0f9b07f08a More tests & debug on multi datasource queries + em_test update
- Added missing allowed_classes options to some references in em_test
2016-06-07 17:34:26 +02:00
Yann
e55954d947 First test on multi datasource queries + em_test update + query.py debug
- Modified again the em_test to fit with testing purpose
- First test on multi datasource query written
- debugging of query.py
2016-06-07 15:55:45 +02:00
Yann
b8d5b5bba2 Completing em_test modifications + completing the dump_infos method of LeFilteredQuery
- adding an EmClass to make a double link between indexes and texts
- adding subqueries infos to dump_infos method of LeFilteredQuery
2016-06-07 14:45:29 +02:00
Yann
d6fbc5cfd1 Test editorial model updated to use two different datasources
- defining a new datasource named dummy2 in both tests conf and install/conf.d
- adding two class using the new datasource in em_test.py
 - index : abtract class representing indexes (two fields, name & content)
 - indextheme : thematic index, inheriting from index but with one more field "theme"
2016-06-07 14:24:16 +02:00
Yann
a91d25e392 Begin implementation of cross datasource reference query
- The set_query_filter() method handles subquery creation
- The run isn't written yet...
2016-06-03 16:06:12 +02:00
prieto
73d911f091 Adding a new class methos in plugins.pyto clear the class variables
Adding tests for the Plugin class
2016-06-03 15:38:39 +02:00
Yann
63a85eb85c Bugfix in xmfile translator tests (path problem)
Using the conf to load emtests.pickle
2016-06-01 08:55:15 +02:00
prieto
ce9684e330 Path correction 2016-05-27 14:48:20 +02:00
prieto
3dc064f98b Correction 2016-05-27 14:14:08 +02:00
prieto
0a870e55f6 Tests checked 2016-05-27 14:00:18 +02:00
Yann
cc337ccb73 Fixing tests and skipping the Settings set test
- I do not understand wy the set test for Settings was OK before...
2016-05-27 13:39:54 +02:00
Yann
3fe63787fb Updated lequery.py to use targe_class datasource and not taking it as arguement of execute methods 2016-05-27 10:58:41 +02:00
Yann
a7c69629e7 Introducing a datasource attribute by em_class 2016-05-27 10:49:17 +02:00
Yann
67c53443b5 Activated raise on invalid settings + enhancement in Settings exceptions 2016-05-25 16:34:42 +02:00
Yann
f8e8750eec Progress in datasource as plugin implementation 2016-05-25 16:00:34 +02:00
Yann
bf879a833c Adds tests for LeGetQuery + bugfixes
- separates LeGetQuery tests and LeFilteredQuery tests
- small bugfixes associated to tests
2016-05-25 14:16:32 +02:00
Yann
9781577cb6 Add tests for filtered queries + bugfixes
- adds tests on filter parse & check
 - standart filters parse & check
 - relational filters parse & check
- bugfixes related to tests in query.py
- update the example and the test EM
- bugfixes in admin script
2016-05-25 12:23:41 +02:00
Yann
38a2448934 Skiping tests waiting for bugfixes 2016-05-25 11:20:43 +02:00
Yann
373987ab9f [Broken tests] Add some tests for xmlfile EM translator 2016-05-25 11:13:38 +02:00
Yann
2628e67982 Bugfix in utility script 2016-05-25 10:37:39 +02:00
Yann
5991bc8e6f Add leading & trailing spaces to all operators in LefilteredQuery
Doing so forbids operators like << == =! in* etc..
The tests were updated
2016-05-20 14:53:08 +02:00
Yann
f402902b5b Written some tests for filtered queries + query re modifications
- the re for filter spliting is modified to better handle operators
- added leading & trailing space to some operators
2016-05-20 14:48:53 +02:00
prieto
1a7c3e683a Delete the useless tests 2016-05-19 14:01:28 +02:00
prieto
aa67601c81 Bugs correction 2016-05-19 11:50:12 +02:00
prieto
9497130e8b Add Save of Settings, EM translator in xml 2016-05-18 09:53:16 +02:00
prieto
c439b6d929 test settings 2016-04-22 17:06:04 +02:00
prieto
48165e0fcb Ajouts 2016-04-21 17:01:12 +02:00
prieto
92921708ca Settings loader en rw 2016-04-21 14:56:02 +02:00
Yann
d30f3e189f [1 test fail] Updated the settings to prepare them to be writable + more tests 2016-04-21 09:41:06 +02:00
Yann
7897203830 Add SettingsLoader.getremains() test + code refactoring in SettingsLoader 2016-04-20 14:45:26 +02:00
Yann
3ed55fdc29 Some modifications + tests update for settings loader 2016-04-20 11:08:46 +02:00
Yann
46fe058e5a Deleted a print in tests + updates pickled em 2016-04-13 11:43:18 +02:00
Yann
4f542e0866 Merge branch 'newlodel' of git.labocleo.org:lodel2 into newlodel 2016-04-13 11:41:37 +02:00
Yann
8659e91f43 Fixing settings & logger 2016-04-13 11:41:14 +02:00