diff --git a/.gitignore b/.gitignore index 68bc17f..10cc536 100644 --- a/.gitignore +++ b/.gitignore @@ -56,7 +56,6 @@ cover/ *.pot # Django stuff: -*.log local_settings.py db.sqlite3 db.sqlite3-journal diff --git a/tests/data/empty.log b/tests/data/empty.log new file mode 100644 index 0000000..e69de29 diff --git a/tests/data/test1.log b/tests/data/test1.log new file mode 100644 index 0000000..10d73d9 --- /dev/null +++ b/tests/data/test1.log @@ -0,0 +1,13 @@ +2017-05-21 14:01:49,686 8038 INFO ? odoo: Odoo version 10.0 +2017-05-21 14:01:49,687 8038 INFO ? odoo: addons paths: [u'/home/nobody/odoo-10.0/addons', u'/home/nobody/odoo/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mail-environment/setup/mail_environment/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mis-builder/setup/mis_builder/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-mis-builder-operating-unit/setup/mis_builder_operating_unit/odoo/addons', u'/home/nobody/odoo/src/odoo10-addon-server-environment-ir-config-parameter/setup/server_environment_ir_config_parameter/odoo/addons', u'/home/nobody/.virtualenvs/odoo-bscw/local/lib/python2.7/site-packages/odoo/addons', u'/home/nobody/.virtualenvs/odoo-bscw/lib/python2.7/site-packages/odoo/addons', '/home/nobody/odoo/src/odoo/odoo/addons'] +2017-05-21 14:01:49,687 8038 INFO ? odoo: database: default@default:default +2017-05-21 14:01:50,496 8038 INFO ? odoo.modules.loading: init db +2017-05-21 14:01:50,637 8038 ERROR ? odoo.modules.registry: Failed to load registry +Traceback (most recent call last): + ... +OSError: [Errno 2] No such file or directory: '/home/nobody/odoo-10.0/addons' +2017-05-21 14:01:50,637 8038 CRITICAL ? odoo.service.server: Failed to initialize database `odoo-bscw-testsuite-1`. +Traceback (most recent call last): + ... +2017-05-21 14:01:50,638 8038 INFO ? odoo.service.server: Initiating shutdown +2017-05-21 14:01:50,638 8038 INFO ? odoo.service.server: Hit CTRL-C again or send a second signal to force the shutdown. \ No newline at end of file diff --git a/tox.ini b/tox.ini index 8b9e62b..4cc4256 100644 --- a/tox.ini +++ b/tox.ini @@ -23,6 +23,4 @@ extras = test metadata commands = - coverage run -m pytest {posargs} - coverage xml - coverage html + pytest