odoo/openerp/tests
Vo Minh Thu 680214c47e [FIX] tools.translate: when loading entries from a PO file, use also the POT.
On Launchpad, as commented on bug 933496, PO entries (and their comments) are
shared between series. This mean that e.g. the 7.0 series can have the wrong
`reference` comments (those beginning with #:) as they would be copied from say
the trunk series. Those `reference` comments are used to import translations
and look them up.

This patch adds a few lines of code to tools.translate so that targets
defined in the POT `reference` comments are used in addition to those from the
PO file.

Also adds a test module to validate the new behavior.

This patch stems from:
 - the 6.1 branch by Vo Minh Thu:
    https://code.launchpad.net/+branch/~openerp-dev/openobject-server/6.1-fix-po-targets-933496-vmt
 - the 7.0 port by Numerigraphe:
    https://code.launchpad.net/~numerigraphe-team/openobject-server/7.0-fix-po-targets-933496-vmt
2014-08-13 23:07:40 +02:00
..
addons [FIX] tools.translate: when loading entries from a PO file, use also the POT. 2014-08-13 23:07:40 +02:00
__init__.py [MERGE] turnk 2012-12-20 03:07:08 +01:00
common.py [FIX] tests.common: make ref() and browse_ref() work for TransactionCase as well + update tests 2012-11-09 18:08:26 +01:00
test_acl.py [FIX] mute logger in some tests 2013-10-29 15:19:39 +01:00
test_basecase.py [FIX] tests.common: make ref() and browse_ref() work for TransactionCase as well + update tests 2012-11-09 18:08:26 +01:00
test_db_cursor.py [FIX] test_db_cursor: explicitely close the cursor (without relying on __del__). 2012-11-15 13:39:37 +01:00
test_expression.py [REF] [IMP] expression.parse: refactored the main parsing loop, now using source and result stacks. Leaf elements are encapsulated into a specific object, allowing to delegate the join condition formation and aliases generation, as well as working_table management to them. The main parsing loop is now a loop taking a leaf, doing one action on it, and putting the result back to be analyzed or in the results. This allows to avoid having while loops inside a main while loop with some weird corner effects. 2012-12-04 15:26:50 +01:00
test_fields.py [IMP] move test on property fields to his own test class 2014-02-13 14:32:54 +01:00
test_ir_filters.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00
test_ir_sequence.py [REF] Use assertEqual method instead of assert instruction 2014-03-06 12:20:53 +01:00
test_mail.py [FIX] tools.email_split: improve email extraction using stdlib + extra tests 2014-01-14 16:44:26 +01:00
test_misc.py [IMP] tests: moved append_to_html into right test file. Added basic struct and templates for testing html_email_clean. 2012-11-06 13:18:24 +01:00
test_orm.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00
test_osv.py [CLEAN] Query: cleaned a bit the code. All joins now goes through the same method, either implicit or explicit. Will have to be upgraded in future versions, but at least this is a bit centralized. Updated ORM accordingly. Updated tests. Added a get_alias_from_query method in expression that find the table and the alias from a 'full alias' statement. 2012-12-07 16:42:04 +01:00
test_translate.py [IMP] [MOV] Moved test_osv and test_translate from unchecked test directory to tests, to be now effectively run. Updated test_osv to matche the new alias coding style. 2012-12-07 15:29:31 +01:00
test_uninstall.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00
test_view_validation.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00
test_xmlrpc.py [FIX] Remove unused imports and fix some imports that doesn't use the new namespace 2012-12-17 15:30:29 +01:00