{ "info": { "author": "Jonathan Loos", "author_email": "loos.jonathan.martin@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Build Tools" ], "description": "# py_ask_sdk_test\n\nThis is a framework for testing **Alexa Skills** developed in **Python** with the [alexa-skills-kit-sdk-for-python](https://github.com/alexa/alexa-skills-kit-sdk-for-python), which is mostly a translation of taimos' [Alexa Skill Test Framework](https://github.com/taimos/ask-sdk-test) in **Typescript**, which itself is based on the [alexa-skill-test-framework](https://github.com/BrianMacIntosh/alexa-skill-test-framework) by Brian MacIntosh.\n\nThe framework uses **assert** to check the expected behaviour. So the best way to go is using it with [pytest](https://docs.pytest.org/en/latest/index.html).\n\nThe ask-sdk version it is based on is `ask-sdk-core=1.10`, `ask-sdk-runtime=1.10` and `ask-sdk-model=1.11`.\n\n### Install:\nYou can install the framework via pip:\n```bash\npip install py_ask_sdk_test\n```\n### Example:\nYou can see an example for using the framework in the following and in the framework's [test-files](https://github.com/BananaNosh/py_ask_sdk_test/tree/master/tests):\n\n```python\nfrom py_ask_sdk_test.alexa_test import AlexaTest\nfrom py_ask_sdk_test.classes import TestItem, SkillSettings, SupportedInterfaces\nfrom request_builders.launch_request_builder import LaunchRequestBuilder\nfrom request_builders.intent_request_builder import IntentRequestBuilder\nfrom pseudo_handler import handler\n\n\nskill_settings = SkillSettings(app_id=\"\",\n user_id=\"\",\n device_id=\"\",\n locale=\"\",\n interfaces=SupportedInterfaces()) # interfaces your skill supports (audio, video etc.)\n\n\ndef test_launch_request():\n \"\"\"Tests the LaunchRequest's speech and repromt output\"\"\"\n alexa_test = AlexaTest(handler)\n alexa_test.test(\n [\n TestItem(\n LaunchRequestBuilder(skill_settings).build(),\n expected_speech=\"Salve, gaudeo te videre!\",\n expected_repromt=\"Vin aliquid dicere?\",\n check_question=False\n ),\n TestItem(\n IntentRequestBuilder(\"DeiIntent\", skill_settings).build(),\n expected_speech=(r\"Jupiter.+\", True),\n expected_repromt=\"\",\n check_question=False\n )\n ]\n )\n\n```", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/BananaNosh/py_ask_sdk_test/archive/v1.2.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/BananaNosh/py_ask_sdk_test", "keywords": "alexa,skill,alexa skill,test,testing,framework,testing framework,ask_sdk,python,pytest", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "py-ask-sdk-test", "package_url": "https://pypi.org/project/py-ask-sdk-test/", "platform": "", "project_url": "https://pypi.org/project/py-ask-sdk-test/", "project_urls": { "Download": "https://github.com/BananaNosh/py_ask_sdk_test/archive/v1.2.tar.gz", "Homepage": "https://github.com/BananaNosh/py_ask_sdk_test" }, "release_url": "https://pypi.org/project/py-ask-sdk-test/1.2/", "requires_dist": null, "requires_python": "", "summary": "A framework for testing Alexa Skills developed in Python with the alexa-skills-kit-sdk-for-python.", "version": "1.2" }, "last_serial": 5439962, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "8bb9556c7347e234a37aa05fe8129f92", "sha256": "c6300caf5a2df270b8eadb0252064cffb256030e3fda4d629cb2a3c5f0f15c13" }, "downloads": -1, "filename": "py_ask_sdk_test-0.1.tar.gz", "has_sig": false, "md5_digest": "8bb9556c7347e234a37aa05fe8129f92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10480, "upload_time": "2019-06-10T16:09:10", "url": "https://files.pythonhosted.org/packages/b1/fd/496047d4de560261e518c69e7c7a9177c5fc1e9f825425f9818faf4fa2c7/py_ask_sdk_test-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "8796b3286c768d698a333ce12bff1bce", "sha256": "51f50a0c43d8c750fed1f4b44b361e3561a40d7b8c4e71437a5c8b4f6dba7c72" }, "downloads": -1, "filename": "py_ask_sdk_test-0.2.tar.gz", "has_sig": false, "md5_digest": "8796b3286c768d698a333ce12bff1bce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10286, "upload_time": "2019-06-10T16:13:45", "url": "https://files.pythonhosted.org/packages/dc/25/40adc22d88a3f96dc1e7237830d5fca851b6cd77cfaee719b7bfb99ec4f1/py_ask_sdk_test-0.2.tar.gz" } ], "1.0": [ { "comment_text": "", "digests": { "md5": "8a8e2db37e23aa3e9122f09497693049", "sha256": "269c3fd54e455246d32aed93028992197c8d4410f0d4ffe6fd368a7c1e6f24d5" }, "downloads": -1, "filename": "py_ask_sdk_test-1.0.tar.gz", "has_sig": false, "md5_digest": "8a8e2db37e23aa3e9122f09497693049", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10302, "upload_time": "2019-06-10T16:22:00", "url": "https://files.pythonhosted.org/packages/ec/85/bbbdbc81707edb3e5a98e21e4a08cd7083e885753ac42abb4805f00e17fb/py_ask_sdk_test-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "1a60f74b8c556d710cbbe64b2692fffa", "sha256": "ac441dd4517c195becdfe97db0010941fa9083561be152a5362e504316fae62f" }, "downloads": -1, "filename": "py_ask_sdk_test-1.1.tar.gz", "has_sig": false, "md5_digest": "1a60f74b8c556d710cbbe64b2692fffa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10477, "upload_time": "2019-06-14T23:07:36", "url": "https://files.pythonhosted.org/packages/75/82/b734360cc97149db334ad5788311e08494bedeebb4283ffaae8b2ad6142f/py_ask_sdk_test-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "62a7fed05e3674d092cc95f2bec9056e", "sha256": "30d53446fdc1415d0112f1b9cac8c20e8383960e19d267b48f4e40221bddb2e1" }, "downloads": -1, "filename": "py_ask_sdk_test-1.2.tar.gz", "has_sig": false, "md5_digest": "62a7fed05e3674d092cc95f2bec9056e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10491, "upload_time": "2019-06-24T10:06:42", "url": "https://files.pythonhosted.org/packages/bb/53/3fdc85a5ddd024eccdb2ba4b9304911770fad03b6393f86d3c37812bcea2/py_ask_sdk_test-1.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "62a7fed05e3674d092cc95f2bec9056e", "sha256": "30d53446fdc1415d0112f1b9cac8c20e8383960e19d267b48f4e40221bddb2e1" }, "downloads": -1, "filename": "py_ask_sdk_test-1.2.tar.gz", "has_sig": false, "md5_digest": "62a7fed05e3674d092cc95f2bec9056e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10491, "upload_time": "2019-06-24T10:06:42", "url": "https://files.pythonhosted.org/packages/bb/53/3fdc85a5ddd024eccdb2ba4b9304911770fad03b6393f86d3c37812bcea2/py_ask_sdk_test-1.2.tar.gz" } ] }