{ "info": { "author": "James Pulec", "author_email": "jpulec@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "=====\nDjango Protractor\n=====\n\nEasily integrate your protractor tests in your django project, and get a fresh test database with every run.\nAdditionally, there is an included test case mixin to allow any custom setup code to run.\n\nDependencies\n------------\nYou must have npm and protractor installed. `See Protractor Documentation for more details`_\n\nQuick Start Testing\n-------------------\n\n1. Add \"protractor\" to your INSTALLED_APPS setting like this::\n\n INSTALLED_APPS = (\n ...\n 'protractor',\n )\n\n2. Run the following command to run your protractor tests::\n\n python manage.py protractor\n\nMore Advanced Test Case Customization\n-------------------------------------\nIf you're like me, you'll find that one-time fixture loading for all of your protractor tests just isn't enough.\nI use the wonderful `factory_boy`_ for my test setup and wanted to find a way to incorporate it with my protractor acceptance tests.\nWhat spawned is an incredibly hack-y mixin that allows me to do just that.\n\nCreate a Subclass of `StaticLiveServerTestCase`_ incorporating the :code:`ProtractorTestCaseMixin` like so, setting the class attribute\n:code:`specs` to a list of protractor specs. This list will be piped to the :code:`--specs` arg that protractor recieves. Then do any necessary\nsetup by overriding the :code:`setUp()` method.\n\n.. code:: python\n\n from django.contrib.staticfiles.testing import StaticLiveServerTestCase\n from protractor.test import ProtractorTestCaseMixin\n\n\n class MyAcceptanceTestCase(ProtractorTestCaseMixin, StaticLiveServerTestCase):\n specs = ['tests/acceptance/test-spec.js',]\n\n def setUp(self):\n \"\"\"Do factory setup stuff.\"\"\"\n super(MyAcceptanceTestCase, self).setUp()\n\n FooFactory()\n BarFactory()\n\n def get_protractor_params(self):\n ...\n\n def test_run(self):\n ...\n\n\nThere are two other hooks that exist as well that can be overridden:\n\n:code:`get_protractor_params()` should return a dict that will be piped to protractor with the :code:`--params` argument.\nBy default this passes in the value of :code:`self.live_server_url`.\n\n:code:`test_run()` is the actual method that gets discovered by test runners, and calls out to protractor using subprocess.\nYou may need to override this if you want to do any python assertions about database state after your protractor tests\nhave run.\n\n\nConfiguration\n-------------\n\nThere are a variety of options available:\n\n- :code:`--protractor-conf` to specify a protractor config file. Default is :code:`protractor.conf.js`\n- :code:`--runserver-command` to specify a different runserver command. Default is :code:`runserver`\n- :code:`--specs` to specify which protractor specs to run.\n- :code:`--suite` to specify which protractor suite to run.\n- :code:`--addrport` to specify which ipaddr:port to run the server on. Default is :code:`localhost:8081`\n- :code:`--fixture` to specify which a fixture to load. This can be used multiple times and will load all specified fixtures.\n\n.. _See Protractor Documentation for more details: https://angular.github.io/protractor/#/\n.. _factory_boy: https://github.com/rbarrois/factory_boy\n.. _StaticLiveServerTestCase: https://docs.djangoproject.com/en/1.8/ref/contrib/staticfiles/#django.contrib.staticfiles.testing.StaticLiveServerTestCase\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "MIT License", "maintainer": "", "maintainer_email": "", "name": "django-protractor", "package_url": "https://pypi.org/project/django-protractor/", "platform": "", "project_url": "https://pypi.org/project/django-protractor/", "project_urls": null, "release_url": "https://pypi.org/project/django-protractor/0.8.4/", "requires_dist": null, "requires_python": "", "summary": "Easily integrate your protractor tests with django", "version": "0.8.4" }, "last_serial": 2427322, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "96f7d3bc9a83e6ba241c0d39787bd708", "sha256": "b4979abc0da00fd9b1dbf9865cbf4644ca01d4d8aff84dc5006d2da574190c29" }, "downloads": -1, "filename": "django-protractor-0.1.tar.gz", "has_sig": false, "md5_digest": "96f7d3bc9a83e6ba241c0d39787bd708", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3542, "upload_time": "2015-03-25T04:06:24", "url": "https://files.pythonhosted.org/packages/af/2d/215f88a9762c0c53fc4e912a56c01d00c950d450e081f15393d70fb72e20/django-protractor-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ac47af22b5f0f59e0eccfaaca9657116", "sha256": "faf21ef006f27682f53856de701132c7fe4d27244b2264928870cce538afa9d5" }, "downloads": -1, "filename": "django-protractor-0.2.tar.gz", "has_sig": false, "md5_digest": "ac47af22b5f0f59e0eccfaaca9657116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3561, "upload_time": "2015-03-25T04:34:52", "url": "https://files.pythonhosted.org/packages/19/22/a41244051d972cd79313198e3a6af927926d472e0e59db50a6cb1294e953/django-protractor-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "3aca7814b09075ac532b9d608adbdc72", "sha256": "175ca0657305fa6ebfd2e0ebcef3390c35fb8e9ebd9e07a878dfcd5803a328c3" }, "downloads": -1, "filename": "django-protractor-0.3.tar.gz", "has_sig": false, "md5_digest": "3aca7814b09075ac532b9d608adbdc72", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3706, "upload_time": "2015-03-31T21:02:56", "url": "https://files.pythonhosted.org/packages/72/f5/8ca1f5afd9e9bbb3dcd8871c681311662384a149fb15f5183a00d0203d36/django-protractor-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "8a4ca081407e278bbbf9176e5fcd0cde", "sha256": "47f0ad8d9e6092771ebfa53bf28df83965123bcb14f797124ee0b9b7a22ac406" }, "downloads": -1, "filename": "django-protractor-0.4.tar.gz", "has_sig": false, "md5_digest": "8a4ca081407e278bbbf9176e5fcd0cde", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3939, "upload_time": "2015-04-14T22:34:54", "url": "https://files.pythonhosted.org/packages/44/22/3f63f42a938ba802d8c1a4c1d9a35f82072acd4e67f9fb9b5515867473ee/django-protractor-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "c2a84e53328104222a472d88ff170f63", "sha256": "49d01a212fd4d0423f136d2f07857592690e82522f12eb46f31e3c4472b9c489" }, "downloads": -1, "filename": "django-protractor-0.5.tar.gz", "has_sig": false, "md5_digest": "c2a84e53328104222a472d88ff170f63", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3962, "upload_time": "2015-04-21T02:35:14", "url": "https://files.pythonhosted.org/packages/a1/2e/2fcbedf6c37d0e3143a5fa0a8371bedfaa081f55156c498ccb268f02b56c/django-protractor-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "67ec59740708f637db54a4fd621e6326", "sha256": "74082db0da20a62a5a11b8d1b8c7453836051b7c5f6ecefeabe647c9c7f1d932" }, "downloads": -1, "filename": "django-protractor-0.6.tar.gz", "has_sig": false, "md5_digest": "67ec59740708f637db54a4fd621e6326", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4165, "upload_time": "2015-05-01T18:21:11", "url": "https://files.pythonhosted.org/packages/aa/2e/6ae2ad4a19f11fc9838d7136d5645121b7a8247b90e317735dd9102abc90/django-protractor-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "e9715693ab2e80852c0f7046e3732e7c", "sha256": "9e867934b1c4201b72440acafae57ff8302b17fd1c34ecb191ee5eaf87a49268" }, "downloads": -1, "filename": "django-protractor-0.7.tar.gz", "has_sig": false, "md5_digest": "e9715693ab2e80852c0f7046e3732e7c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4267, "upload_time": "2015-06-01T19:16:24", "url": "https://files.pythonhosted.org/packages/f3/c1/71efdcdca7c12c86e286809beeaab68821dc4e488f75d06c78aae2d71887/django-protractor-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "d20604cf9202120c353588178ddb9957", "sha256": "258ae657929989f48ffc24666edcce7e39a7ec9e75c2614a1fcc34575df16632" }, "downloads": -1, "filename": "django-protractor-0.8.tar.gz", "has_sig": false, "md5_digest": "d20604cf9202120c353588178ddb9957", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4267, "upload_time": "2015-07-02T18:01:00", "url": "https://files.pythonhosted.org/packages/c9/ec/94499e64bfbba1ccaf9fd3e21bba799c60d7b26fd1d1dec71615fc908a46/django-protractor-0.8.tar.gz" } ], "0.8.1": [ { "comment_text": "", "digests": { "md5": "8ea77c2be0bbc623f3da6d134060eb6b", "sha256": "9c4b54260da3e2306ac18aa96773478c85b8729de819f186e46086de80df4940" }, "downloads": -1, "filename": "django-protractor-0.8.1.tar.gz", "has_sig": false, "md5_digest": "8ea77c2be0bbc623f3da6d134060eb6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5232, "upload_time": "2015-09-24T07:09:00", "url": "https://files.pythonhosted.org/packages/5d/59/67055dc18b95fa0859d611feecd25fa6e6ceb0cfd685557fd6272e4c8a78/django-protractor-0.8.1.tar.gz" } ], "0.8.2": [ { "comment_text": "built for Linux-4.4.5-1-ARCH-x86_64-with-glibc2.3.4", "digests": { "md5": "e2d02a673dcc1abe0cb95ce0fb85e978", "sha256": "23526e7e364bca4cee8b46336e3fbc5709bc8e0013a321fdf3060dd4029bacea" }, "downloads": -1, "filename": "django-protractor-0.8.2.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "e2d02a673dcc1abe0cb95ce0fb85e978", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 7004, "upload_time": "2016-04-12T07:06:00", "url": "https://files.pythonhosted.org/packages/e0/13/f42808279954bd785d2b1c1660bdfc5253655610c7f0b7b05aa60678a86e/django-protractor-0.8.2.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "dd54d8c0f093cfefea16a19d9a80b947", "sha256": "0dafc0806445e81d2c17c8d594dbb801ae61bb2bf6d13b7c7979dff39cabf0ef" }, "downloads": -1, "filename": "django-protractor-0.8.2.tar.gz", "has_sig": false, "md5_digest": "dd54d8c0f093cfefea16a19d9a80b947", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5310, "upload_time": "2016-04-12T07:05:42", "url": "https://files.pythonhosted.org/packages/65/97/3394288ffbcae0fd1335c41ed35fb5d697beea1d64105ebfd7c666e038d6/django-protractor-0.8.2.tar.gz" } ], "0.8.3": [ { "comment_text": "", "digests": { "md5": "aae9dab2702f1a1e9389e6fb9c2d60ca", "sha256": "a26a773b5534137e410cb5d25a027dc7ba07f10f128d518a42a5e1ce4068b87e" }, "downloads": -1, "filename": "django-protractor-0.8.3.tar.gz", "has_sig": false, "md5_digest": "aae9dab2702f1a1e9389e6fb9c2d60ca", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5428, "upload_time": "2016-10-27T21:47:53", "url": "https://files.pythonhosted.org/packages/69/b1/a08a6de8893f58ece67c7e90c62cc008a9049ed43fed5fbca31c97934eb1/django-protractor-0.8.3.tar.gz" } ], "0.8.4": [ { "comment_text": "", "digests": { "md5": "ce96e401acfcb216134dda480adf67d3", "sha256": "470f19715b0636f41795b24d9b2f6219013c7a74bcaa79240212ef12fed27327" }, "downloads": -1, "filename": "django-protractor-0.8.4.tar.gz", "has_sig": false, "md5_digest": "ce96e401acfcb216134dda480adf67d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5421, "upload_time": "2016-10-27T22:22:38", "url": "https://files.pythonhosted.org/packages/f1/53/521855746de7e7422a0cc12a2d0cb0a8c10f685361cdc0242a304eebab10/django-protractor-0.8.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ce96e401acfcb216134dda480adf67d3", "sha256": "470f19715b0636f41795b24d9b2f6219013c7a74bcaa79240212ef12fed27327" }, "downloads": -1, "filename": "django-protractor-0.8.4.tar.gz", "has_sig": false, "md5_digest": "ce96e401acfcb216134dda480adf67d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5421, "upload_time": "2016-10-27T22:22:38", "url": "https://files.pythonhosted.org/packages/f1/53/521855746de7e7422a0cc12a2d0cb0a8c10f685361cdc0242a304eebab10/django-protractor-0.8.4.tar.gz" } ] }