openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #12739
[Bug 1015285] Re: unable to run test_auth.yml
*** This bug is a duplicate of bug 906854 ***
https://bugs.launchpad.net/bugs/906854
** This bug has been marked a duplicate of bug 906854
while installing mrp i found traceback
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1015285
Title:
unable to run test_auth.yml
Status in OpenERP Server:
New
Bug description:
Created a test database with demo data. Here are some of the commands
I ran, however I am unable to run this test yml. It does not seem to
be able to commit. The database settings are correct, as they're used
in the normal server. Am I doing something wrong?
Server:
/Users/Marcos/Development/openobject/server/openerp-server --log-level=debug --log-request --log-response --log-web --log-sql -c /Users/Marcos/Development/openobject/server/openerp-test.conf
Test Init/Setup
./openerp-server --config ./openerp-test.conf --stop-after-init -i base
./openerp-server --config ./openerp-test.conf --stop-after-init --update=all
./openerp-server --config ./openerp-test.conf --log-level=test --test-
file=/Users/Marcos/Development/openobject/server/openerp/addons/base/test/test_auth.yml
--log-sql
-- error from yml test --
2012-06-19 20:10:10,592 22575 INFO openerp_demo openerp: loading test file /Users/Marcos/Development/openobject/server/openerp/addons/base/test/test_auth.yml
2012-06-19 20:10:10,632 22575 TEST openerp_demo openerp.tools.yaml_import: I will now stress the authentication layer of the ORM
2012-06-19 20:10:10,632 22575 TEST openerp_demo openerp.tools.yaml_import: I create a test user.
2012-06-19 20:10:10,634 22575 TEST openerp_demo openerp.tools.yaml_import: I will prepare the context
2012-06-19 20:10:10,635 22575 TEST openerp_demo openerp.tools.yaml_import: I will commit the cursor and try to login.
2012-06-19 20:10:10,643 22575 ERROR openerp_demo openerp.tools.yaml_import: AssertionError in Python code : User is not activated after res.users commit!
2012-06-19 20:10:10,644 22575 ERROR openerp_demo openerp.tools.yaml_import: Severe assertion failure (ERROR), aborting.
Traceback (most recent call last):
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 843, in process
self._process_node(node)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 858, in _process_node
self.process_python(node)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 531, in process_python
self._log_assert_failure(python.severity, 'AssertionError in Python code %s: %s', python.name, e)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 223, in _log_assert_failure
raise YamlImportAbortion('Severe assertion failure (%s), aborting.' % levelname)
YamlImportAbortion: Severe assertion failure (ERROR), aborting.
2012-06-19 20:10:10,664 22575 ERROR openerp_demo openerp: Failed to initialize database `openerp_demo` and run test file `/Users/Marcos/Development/openobject/server/openerp/addons/base/test/test_auth.yml`.
Traceback (most recent call last):
File "./openerp-server", line 108, in run_test_file
openerp.tools.convert_yaml_import(cr, 'base', file(test_file), {}, 'test', True)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 908, in yaml_import
yaml_interpreter.process(yaml_string)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 843, in process
self._process_node(node)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 858, in _process_node
self.process_python(node)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 531, in process_python
self._log_assert_failure(python.severity, 'AssertionError in Python code %s: %s', python.name, e)
File "/Users/Marcos/Development/openobject/server/openerp/tools/yaml_import.py", line 223, in _log_assert_failure
raise YamlImportAbortion('Severe assertion failure (%s), aborting.' % levelname)
YamlImportAbortion: Severe assertion failure (ERROR), aborting.
2012-06-19 20:10:10,687 22575 WARNING ? openerp.sql_db: Cursor not closed explicitly
Please enable sql debugging to trace the caller.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1015285/+subscriptions
References