{
"info": {
"author": "Jean-Sebastien Suzanne",
"author_email": "jssuzanne@anybox.fr",
"bugtrack_url": null,
"classifiers": [
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Topic :: Software Development :: Quality Assurance",
"Topic :: Software Development :: Testing",
"Topic :: System :: Benchmark"
],
"description": "Nosetests and Odoo\n==================\n\nThis is an alternative test runner that prevents confusing situations\ndue to the special ``openerp.addons`` namespace for Odoo addons.\n\nAt the time being, it is meant to be used in conjunction with the\n`buildout recipe `_ only.\n\nUse case\n--------\nOdoo overrides the python importer for the *Odoo addons* (also called\n*modules* but we'll avoid this terminology here for confusion with\nPython modules), to place them into the ``openerp.addons`` namespace.\n\nFor instance, some ``foo`` Odoo addon will be set in the sys.modules as\n``openerp.addons.foo`` instead of just ``foo``.\n\nThe issue is that nose imports the test modules directly, with the\neffect that they aren't in the ``openerp.addons`` namespace. This\nleads to overall duplication of the Odoo addon as a Python module,\nwhich can in some cases confuse the code. For instance, some\n``isinstance()`` calls might fail, depending on the execution path.\n\nNotably, this runner is necessary for tests related to the `Odoo\nconnector framework `_. Historically this\nis the context in which the above mentionned issue arose. Anybox had\nbeen using the ordinary ``nosetests`` for several years before\nactually stumbling on this.\n\n\nInvocation\n----------\n\nThis runner relies on the assumption that all relevant Odoo addons\nhave already been imported when the nose importer kicks in. This\ncondition is always true if used `through the\nbuildout recipe\n`_\n\nTherefore, the standard way of using the runner is to declare it in\nthe buildout configuration::\n\n eggs = anybox.nose.odoo\n openerp_scripts = odoo_nosetests=odoo_nosetests command-line-options=-d\n\nand then run, e.g::\n\n bin/odoo_nosetests -d TESTING_DB -- some/module/tests\n\nCredits\n-------\nCopyright (c) 2015 Anybox SAS \nReleased under GPLv3+ license\n\n:Author: Jean-S\u00e9bastien SUZANNE ",
"description_content_type": null,
"docs_url": null,
"download_url": "UNKNOWN",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://bitbucket.org/anybox/anybox.nose.odoo",
"keywords": null,
"license": "GPLv3",
"maintainer": null,
"maintainer_email": null,
"name": "anybox.nose.odoo",
"package_url": "https://pypi.org/project/anybox.nose.odoo/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/anybox.nose.odoo/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://bitbucket.org/anybox/anybox.nose.odoo"
},
"release_url": "https://pypi.org/project/anybox.nose.odoo/0.1/",
"requires_dist": null,
"requires_python": null,
"summary": "Console script to run nose with the good import",
"version": "0.1"
},
"last_serial": 1484424,
"releases": {
"0.1": [
{
"comment_text": "",
"digests": {
"md5": "63ec9c6c30ed792214881a1aa9ab9e71",
"sha256": "15aa9d89a3e888fc010d287fb734a023a7c5a44d7a1d3d898211bad5c46a6791"
},
"downloads": -1,
"filename": "anybox.nose.odoo-0.1.tar.gz",
"has_sig": false,
"md5_digest": "63ec9c6c30ed792214881a1aa9ab9e71",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3747,
"upload_time": "2015-03-31T07:48:20",
"url": "https://files.pythonhosted.org/packages/eb/85/6fe03074e28b67fe3566debcc5515c273509015e2766fc2e5579cf288ebc/anybox.nose.odoo-0.1.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "63ec9c6c30ed792214881a1aa9ab9e71",
"sha256": "15aa9d89a3e888fc010d287fb734a023a7c5a44d7a1d3d898211bad5c46a6791"
},
"downloads": -1,
"filename": "anybox.nose.odoo-0.1.tar.gz",
"has_sig": false,
"md5_digest": "63ec9c6c30ed792214881a1aa9ab9e71",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3747,
"upload_time": "2015-03-31T07:48:20",
"url": "https://files.pythonhosted.org/packages/eb/85/6fe03074e28b67fe3566debcc5515c273509015e2766fc2e5579cf288ebc/anybox.nose.odoo-0.1.tar.gz"
}
]
}