{ "info": { "author": "Sascha Welter", "author_email": "sw@betabug-sirius.ch", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: JavaScript", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: Software Development", "Topic :: Software Development :: Testing" ], "description": "Python envjasmine wrapper\n=========================\n\nThis is a thin python wrapper around the envjasmine_ JavaScript\ntesting framework.\n\n\n.. contents::\n\n\nInstallation\n------------\n\nYou can install pyenvjasmine using pip_::\n\n pip install pyenvjasmine\n\nOr you can grab the latest sources using Mercurial_ from https://code.codigo23.net/hg/pyenvjasmine::\n\n hg clone https://code.codigo23.net/hg/pyenvjasmine\n\nand install it from there::\n\n python setup.py install\n\nAlso, you can use it directly from the sources directory, in *development mode*\n(useful if you want to contribute to the project)::\n\n pip install -e .\n\n.. note::\n\n More about the *development mode* here:\n\n https://packaging.python.org/en/latest/distributing.html#working-in-development-mode\n\n.. warning::\n\n Starting with version **0.3.0**, pyenvjasmine has support to run tests with\n different browsers/engines. The headless browser rhino is included with\n pyenvjasmine, but in order to use the other engines, you have to install the\n needed browser(s).\n\n Right now, only phantomjs_ is supported, so ensure you have it installed if\n you want to use that browser/engine to run tests on. **Required if you want\n to run tests on jasmine 3.x** (also required to run pyenvjasmine's own\n tests).\n\n\nRunning pyenvjasmine tests\n--------------------------\n\nTo run the tests on this code here (as opposed to *your* JavaScript code you\nwant to test), install pyenvjasmine (and phantomjs) and then run::\n\n py.test\n\n\nRun your own tests\n------------------\n\nThe easiest way is to put your \"specs\" (JavaScript tests) into some directory\nin your code, then in your python tests, add a new TestCase with just one test\nthat runs all your JavaScript tests.\n\nThe simplest solution is to set capture_output to False, so you see the output\nfrom the js tests on the console. Something like this::\n\n import pytest\n from pyenvjasmine.runner import Runner\n\n class TestJavaScript(object):\n def test_my_javascript(self):\n runner = Runner(\n testdir='/path/to/my/testdir',\n configfile='relative/path/to/configfile',\n testing_environment='phantomjs')\n success, stdout = runner.run()\n # assert on success, will be true if tests passed, False if any\n # test failed\n assert success, \"One or more javascript tests have failed\"\n # you can inspect stdout if you want to get more info, but it\n # will be printed to the console stdout anyway\n assert b'Total: 120' in stdout\n\nIn this example, the *phantomjs* browse/engine is used, replace that with\n*rhino* to run tests on rhino + jasmine 1.x.\n\n.. note::\n\n *phantomjs* is the preferred browser/engine, so it is what pyenvjasmine\n will use as a default if you don't set *testing_environment* when creating\n a new *Runner* instance.\n\n\n.. _Mercurial: https://www.mercurial-scm.org\n.. _envjasmine : https://github.com/trevmex/EnvJasmine\n.. _pip: http://www.pip-installer.org/en/latest/index.html\n.. _easy_install: http://peak.telecommunity.com/DevCenter/EasyInstall\n.. _phantomjs: http://phantomjs.org\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "http://pypi.python.org/pypi/pyenvjasmine#downloads", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://code.codigo23.net/trac/wiki/pyenvjasmine", "keywords": "", "license": "BSD licence, see LICENSE", "maintainer": "Francisco de Borja Lopez Rio", "maintainer_email": "borja@codigo23.net", "name": "pyenvjasmine", "package_url": "https://pypi.org/project/pyenvjasmine/", "platform": "", "project_url": "https://pypi.org/project/pyenvjasmine/", "project_urls": { "Download": "http://pypi.python.org/pypi/pyenvjasmine#downloads", "Homepage": "https://code.codigo23.net/trac/wiki/pyenvjasmine" }, "release_url": "https://pypi.org/project/pyenvjasmine/0.3.1/", "requires_dist": [ "coverage", "pyflakes", "pytest", "pytest-cov", "pytest-flakes" ], "requires_python": "", "summary": "A Python wrapper for envjasmine", "version": "0.3.1" }, "last_serial": 5781703, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5bf29ba62477f540f518f40d9c6d8358", "sha256": "caa8eb0879dcfbf098889421567f60c90e044894e7da76220890d6e478dfd716" }, "downloads": -1, "filename": "pyenvjasmine-0.1.tar.gz", "has_sig": false, "md5_digest": "5bf29ba62477f540f518f40d9c6d8358", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2180, "upload_time": "2015-04-24T09:41:01", "url": "https://files.pythonhosted.org/packages/cc/42/a98a5208cee7034fe1ba98bb25fec3ed2e02da8f3f4963dd5aa7a6e5b7b5/pyenvjasmine-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "4d143c12c655dc62f61d4ded6798fee9", "sha256": "f1917a4b425dcb4ef4794b9d0e2507e62f4f2bbfbec458a6c1b4782b317371b3" }, "downloads": -1, "filename": "pyenvjasmine-0.1.1.tar.gz", "has_sig": false, "md5_digest": "4d143c12c655dc62f61d4ded6798fee9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2461, "upload_time": "2015-04-24T09:54:34", "url": "https://files.pythonhosted.org/packages/4b/e9/fdecfbeaf57a4598556892c46cbb965c30e160b7ed7a3c545c7d1d0d6a0b/pyenvjasmine-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "957f946c58a52cfbc26cb15cc6241c3e", "sha256": "e4943b8e8e79f81a2d12b8b5e6690abddc895a3286c1225c3393ae651618f386" }, "downloads": -1, "filename": "pyenvjasmine-0.1.2.tar.gz", "has_sig": false, "md5_digest": "957f946c58a52cfbc26cb15cc6241c3e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1077723, "upload_time": "2015-04-24T10:43:04", "url": "https://files.pythonhosted.org/packages/3b/e9/ef9dcb2170a32f002163bca7dd4a5c6eb2d7153af42510fc21c04a33b1a1/pyenvjasmine-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "b8cb653e68c6d985593aee4a48ea7bea", "sha256": "41c226957a8c57523b83083317251281f84c9980a1d343672e938590dfaaf07a" }, "downloads": -1, "filename": "pyenvjasmine-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b8cb653e68c6d985593aee4a48ea7bea", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1077725, "upload_time": "2015-04-24T10:48:08", "url": "https://files.pythonhosted.org/packages/e2/0c/38ad0e902c3d52d93a89cacede09e1ecbd23c49454074d81d47464a04e7f/pyenvjasmine-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "97b6881d34438323522138c092a1f35d", "sha256": "fca87c942519aa8aedaefc0c1687680aa9c7563eec388d523530084f98fd2d95" }, "downloads": -1, "filename": "pyenvjasmine-0.1.4.tar.gz", "has_sig": false, "md5_digest": "97b6881d34438323522138c092a1f35d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2268504, "upload_time": "2015-04-24T11:05:31", "url": "https://files.pythonhosted.org/packages/c4/df/429402c617c340e9409e36810b9253ed33e036d84b8e02490fd066fa5041/pyenvjasmine-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "22a703b06d96ea2ab7775a6ebb248593", "sha256": "221e5a5f88da1f483dffdc2ada50520edcba514671f3c08304b1734a5442ef22" }, "downloads": -1, "filename": "pyenvjasmine-0.1.5.tar.gz", "has_sig": false, "md5_digest": "22a703b06d96ea2ab7775a6ebb248593", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2268504, "upload_time": "2015-04-24T19:38:50", "url": "https://files.pythonhosted.org/packages/94/1e/765572b53a0c653c8afb0d47e7e9876e21025f50bfe99a536b5ff750f93c/pyenvjasmine-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "1df29e86c1b8c86bef6a436ad51091c0", "sha256": "0419716bd9312b177a58c7a42ebcd19968daf4f20c2f4edcf298d06e61034ab4" }, "downloads": -1, "filename": "pyenvjasmine-0.1.6.tar.gz", "has_sig": false, "md5_digest": "1df29e86c1b8c86bef6a436ad51091c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2266443, "upload_time": "2017-07-13T07:57:47", "url": "https://files.pythonhosted.org/packages/39/f9/2e2df327a6ad721f6097fd4863accfff106b54da3f59009c389a67ff471f/pyenvjasmine-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "db28a961c7b0461a795aa0aa658780a9", "sha256": "9fb23c9af147958d6b9ec6a049d33001173e31e81a952dce175821247a4a919e" }, "downloads": -1, "filename": "pyenvjasmine-0.1.7.tar.gz", "has_sig": false, "md5_digest": "db28a961c7b0461a795aa0aa658780a9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2266681, "upload_time": "2017-07-13T16:08:13", "url": "https://files.pythonhosted.org/packages/2c/1c/95c442aea6c3bcc954f3c37e00676f5de3ef07c9cb6f3600656c702a8ad4/pyenvjasmine-0.1.7.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "953f44cba80b220cd7d267c3fa58df08", "sha256": "a4a2d9d0f47071005b36ccbd792a96a9f870f5d2dde3d52e6ac3053a99582dad" }, "downloads": -1, "filename": "pyenvjasmine-0.2.tar.gz", "has_sig": false, "md5_digest": "953f44cba80b220cd7d267c3fa58df08", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2267656, "upload_time": "2018-01-18T12:10:17", "url": "https://files.pythonhosted.org/packages/e0/b2/a2cf072516ac52bcefc77763695a9f2147713428c47fc6acf4569e4a23bb/pyenvjasmine-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "37d79d0d8fcf17f6318716c93ae344ff", "sha256": "97f9341882b728b2317d89bc0a6cfbaf7eb59ef8ed24cd425364bcd81964543e" }, "downloads": -1, "filename": "pyenvjasmine-0.2.1.tar.gz", "has_sig": false, "md5_digest": "37d79d0d8fcf17f6318716c93ae344ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2267865, "upload_time": "2018-01-19T10:47:21", "url": "https://files.pythonhosted.org/packages/94/a3/c94f9eefc5e8652bc3016484368a4bf90eb81d4a989063be84e0c522bc1b/pyenvjasmine-0.2.1.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "ec7a2e00c73dba5025fc994b9ff49784", "sha256": "569c51eab149266a9f3025f615b7dbb89a71e45dfeac5424cd4d7d8e348bdec6" }, "downloads": -1, "filename": "pyenvjasmine-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ec7a2e00c73dba5025fc994b9ff49784", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2325970, "upload_time": "2018-04-03T12:02:45", "url": "https://files.pythonhosted.org/packages/9c/40/a79c811e7a3d250802c2a835a1cec0bd795a0dc2b91a2f5fd9eee2172fa4/pyenvjasmine-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "f40a710c0231839a2a141160d14cb304", "sha256": "11ca88a7a096f44d3d9b20359643314037bdb7b378e924a46b0942ca010f6d2c" }, "downloads": -1, "filename": "pyenvjasmine-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f40a710c0231839a2a141160d14cb304", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2352246, "upload_time": "2019-09-04T14:46:10", "url": "https://files.pythonhosted.org/packages/d9/10/69653d3ca04775f9d8caf726a22f9581a82623c553013653773419088a79/pyenvjasmine-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "40cf853c133083c1c2864ebcfd4b46af", "sha256": "f716488a27a77d53136fef21c2e7326c4903252ebe041b22931b164e186b2569" }, "downloads": -1, "filename": "pyenvjasmine-0.3.1.tar.gz", "has_sig": false, "md5_digest": "40cf853c133083c1c2864ebcfd4b46af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326496, "upload_time": "2019-09-04T14:46:13", "url": "https://files.pythonhosted.org/packages/d2/43/0f1ec5a7d0173bf916163a0e98f6497e5b3fb18ec4dc0d3ffe98f5dae863/pyenvjasmine-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f40a710c0231839a2a141160d14cb304", "sha256": "11ca88a7a096f44d3d9b20359643314037bdb7b378e924a46b0942ca010f6d2c" }, "downloads": -1, "filename": "pyenvjasmine-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f40a710c0231839a2a141160d14cb304", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2352246, "upload_time": "2019-09-04T14:46:10", "url": "https://files.pythonhosted.org/packages/d9/10/69653d3ca04775f9d8caf726a22f9581a82623c553013653773419088a79/pyenvjasmine-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "40cf853c133083c1c2864ebcfd4b46af", "sha256": "f716488a27a77d53136fef21c2e7326c4903252ebe041b22931b164e186b2569" }, "downloads": -1, "filename": "pyenvjasmine-0.3.1.tar.gz", "has_sig": false, "md5_digest": "40cf853c133083c1c2864ebcfd4b46af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2326496, "upload_time": "2019-09-04T14:46:13", "url": "https://files.pythonhosted.org/packages/d2/43/0f1ec5a7d0173bf916163a0e98f6497e5b3fb18ec4dc0d3ffe98f5dae863/pyenvjasmine-0.3.1.tar.gz" } ] }