l10n_it_fiscalcode - wrong test data

Bug #1295071 reported by Lorenzo Battistini - Agile BG on 2014-03-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP Italia
Medium
Lorenzo Battistini - Agile BG

Bug Description

Running tests of l10n_it_fiscalcode get

2014-03-20 08:06:11,522 24006 TEST public-openerp-buildbot-openerp-italia openerp.tools.yaml_import: I run the wizard
2014-03-20 08:06:11,522 24006 ERROR public-openerp-buildbot-openerp-italia openerp.tools.yaml_import: res_partner_c2c not found when processing /home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/italian-addons-7.0/l10n_it_fiscalcode/test/fiscalcode.yml.
    This Yaml file appears to depend on missing data. This often happens for
    tests that belong to a module's test suite and depend on each other.
Traceback (most recent call last):
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 864, in process
    self._process_node(node)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 877, in _process_node
    self.process_python(node)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 550, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/italian-addons-7.0/l10n_it_fiscalcode/test/fiscalcode.yml", line 3, in <module>
    -
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 170, in get_id
    tests that belong to a module's test suite and depend on each other.""" % (checked_xml_id, self.filename))
ValueError: res_partner_c2c not found when processing /home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/italian-addons-7.0/l10n_it_fiscalcode/test/fiscalcode.yml.
    This Yaml file appears to depend on missing data. This often happens for
    tests that belong to a module's test suite and depend on each other.
2014-03-20 08:06:11,523 24006 ERROR public-openerp-buildbot-openerp-italia openerp.modules.loading: module l10n_it_fiscalcode: an exception occurred in a test
Traceback (most recent call last):
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/modules/loading.py", line 83, in load_test
    _load_data(cr, module_name, idref, mode, 'test')
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/modules/loading.py", line 122, in _load_data
    tools.convert_yaml_import(cr, module_name, fp, kind, idref, mode, noupdate, report)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 928, in yaml_import
    yaml_interpreter.process(yaml_string)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 864, in process
    self._process_node(node)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 877, in _process_node
    self.process_python(node)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 550, in process_python
    unsafe_eval(code_obj, {'ref': self.get_id}, code_context)
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/italian-addons-7.0/l10n_it_fiscalcode/test/fiscalcode.yml", line 3, in <module>
    -
  File "/home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/server-7.0/openerp/tools/yaml_import.py", line 170, in get_id
    tests that belong to a module's test suite and depend on each other.""" % (checked_xml_id, self.filename))
ValueError: res_partner_c2c not found when processing /home/buildslave/public/openerp/openerp-italia-postgresql-9_1/build/parts/italian-addons-7.0/l10n_it_fiscalcode/test/fiscalcode.yml.
    This Yaml file appears to depend on missing data. This often happens for
    tests that belong to a module's test suite and depend on each other.

See at http://buildbot.openerp.agilebg.com/builders/openerp-italia-postgresql-9.1/builds/2/steps/testing/logs/test

l10n_it_fiscalcode/test/fiscalcode.yml should be fixed referring to valid data

Related branches

Changed in openobject-italia:
status: New → Fix Committed
assignee: nobody → Lorenzo Battistini - Agile BG (elbati)
importance: Undecided → Medium
Changed in openobject-italia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers