{ "info": { "author": "Leonardo Santagada", "author_email": "santagada@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3", "Operating System :: OS Independent", "Topic :: Software Development :: Testing" ], "description": "py.test plugin for testing OpenERP modules\n\nUsage\n-----\n\ninstall/update via::\n\n pip install -U pytest-oerp\n\nand to run tests type::\n\n py.test --oerp-server-path= \\\n --oerp-db=\n\nthis will load OpenERP using the config on ``~/.openerp_serverrc`` and create a pool and transaction for the choosen database for the testcases where you receive an ``oerp`` attribute.\n\nWritting tests\n--------------\n\nTestcases only need to receive ``oerp`` to create a transaction on oerp an example follows::\n\n def test_simple(oerp):\n product_obj = oerp.pool.get('product.product')\n product_ids = product_obj.search(oerp.cr, 1, [])\n\nthis will be run inside OpenERP like code in modules and you can use the full openerp api. You can only load stuff from OpenERP library inside functions, because the library is added to sys.path dynamically.\n\nOpenERP API\n-----------\n\nAs pytest-oerp is running inside OpenERP everything you need to do that can be done inside a module can be done in a pytest-oerp test. The usual ``cr``, ``uid`` attributes are ``oerp.cr`` and ``1`` (that means the first user, usually admin). ``oerp`` also has a ``pool`` attribute that is useful.\n\nTodo\n----\n\nThere are a lot of polish and features that should be done but a tentative list would be:\n\n- support passing a configuration to OpenERP\n- more tests (always a good thing)\n- don't depend on mock (great lib but probably unnecessary for this)\n- redirect print log\n- addini in pytest so you can configure with pytest.ini\n- lettuce support, but this will probably go in another package\n\n\nNotes\n-----\n\nThe official repository of this plugin is at http://github.com/santagada/pytest-oerp\n\nFor more info on py.test see http://pytest.org\n\nAll work on the plugin has been sponsored by PROGE (http://www.proge.com.br)", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/santagada/pytest-oerp/", "keywords": null, "license": "Affero GPL 3", "maintainer": null, "maintainer_email": null, "name": "pytest-oerp", "package_url": "https://pypi.org/project/pytest-oerp/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pytest-oerp/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/santagada/pytest-oerp/" }, "release_url": "https://pypi.org/project/pytest-oerp/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "pytest plugin to test OpenERP modules", "version": "0.2.0" }, "last_serial": 743788, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "49fed2adb431ff98267d151d1f429367", "sha256": "fcfef0d4ba04bf63f02b6e89677d00516b7e465ab28088f0afafbb2d7e724ed2" }, "downloads": -1, "filename": "pytest-oerp-0.1.tar.gz", "has_sig": false, "md5_digest": "49fed2adb431ff98267d151d1f429367", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2192, "upload_time": "2011-07-15T22:53:32", "url": "https://files.pythonhosted.org/packages/2a/b3/0f6b4fbf7b1c4d438a82cfb1f8d7aa9166ea2957a6566c42dea3ccc20c16/pytest-oerp-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "6aa4683bca5e5fd0a69a616671718def", "sha256": "58c3be5786dc9d0845d7b411b3ba5d235e25cd54c56156acfb3e6a168110bf5e" }, "downloads": -1, "filename": "pytest-oerp-0.1.1.tar.gz", "has_sig": false, "md5_digest": "6aa4683bca5e5fd0a69a616671718def", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2526, "upload_time": "2011-10-05T18:14:04", "url": "https://files.pythonhosted.org/packages/d9/b0/a974f16dd663ce1f40c2ad5768ee395f07e0e2eb63fac0d708cf373827a5/pytest-oerp-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9d00b97615e613f12c57ae143b974868", "sha256": "50c1cdd1487c62e9ba98c5b33b4a6251043e1123f732c3ef7a6aefa82160f1a4" }, "downloads": -1, "filename": "pytest-oerp-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9d00b97615e613f12c57ae143b974868", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2746, "upload_time": "2011-10-05T18:24:04", "url": "https://files.pythonhosted.org/packages/1e/5b/f115fc47849ffe384b41643aa8b347e9ed4a65649e7f419e0e67377173ef/pytest-oerp-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "06d8d7642a8da5592628e2d57e9225d4", "sha256": "edaf88b859a5fe1bab400cfeff6118ea9e2eb3bd39c656a5bfd1ceb88136b7ba" }, "downloads": -1, "filename": "pytest-oerp-0.2.0.tar.gz", "has_sig": false, "md5_digest": "06d8d7642a8da5592628e2d57e9225d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3294, "upload_time": "2012-02-28T19:52:54", "url": "https://files.pythonhosted.org/packages/8b/a3/7dd188b8dac94d266cf28f39f087d9fd3b36a79058c9fb0d77c1bfdb04c1/pytest-oerp-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "06d8d7642a8da5592628e2d57e9225d4", "sha256": "edaf88b859a5fe1bab400cfeff6118ea9e2eb3bd39c656a5bfd1ceb88136b7ba" }, "downloads": -1, "filename": "pytest-oerp-0.2.0.tar.gz", "has_sig": false, "md5_digest": "06d8d7642a8da5592628e2d57e9225d4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3294, "upload_time": "2012-02-28T19:52:54", "url": "https://files.pythonhosted.org/packages/8b/a3/7dd188b8dac94d266cf28f39f087d9fd3b36a79058c9fb0d77c1bfdb04c1/pytest-oerp-0.2.0.tar.gz" } ] }