{ "info": { "author": "Jeferson Daniel", "author_email": "jeferson.daniel412@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": "Behave Web Api\n==============\n\n|Build Status|\n\nProvides testing for JSON APIs with Behave\n\nInstallation\n------------\n\n::\n\n pip install behave-web-api\n\nImport steps in your features/steps/\\ **init**.py\n\n.. code:: python\n\n from behave_web_api.steps import *\n\nSo you can use the steps in your feature files\n\n.. code:: gherkin\n\n Feature: Doing http requests\n\n Scenario: Send text body and headers\n Given I set header \"X-My-Header\" with value \"Something\"\n When I send a POST request to \"/requests/echo\" with body:\n \"\"\"\n Something\n \"\"\"\n Then the response code should be 200\n And the response should contain json:\n \"\"\"\n {\n \"headers\": {\n \"X-My-Header\": \"Something\"\n },\n \"body\": \"%[A-Za-z]+%\"\n }\n \"\"\"\n\n Scenario: Send file using variables and environment variables\n Given I set the variable \"DATA_DIR\" with \"$PWD/features/data\" \n And I attach the file \"$DATA_DIR/favicon.ico\" as \"upload\"\n When I send a POST request to \"/requests/echo\"\n Then the response code should be 200\n And print response\n\n\nAnd run using BASE_URL environment variable:\n\n::\n\n BASE_URL=localhost:5000 behave features/requests.feature\n\n\nAvailable Steps\n---------------\n\n- I set variable \"{}\" with value \"{}\"\n- I set header \"{}\" with value \"{}\"\n- I attach the file \"{}\" as \"{}\"\n- I send a {} request to \"{}\" with body\n- I send a {} request to \"{}\" with values\n- I send a {} request to \"{}\"\n- the response code should be {}\n- the response should contain json\n- the response should contain text\n- print response\n\n\nAcknowledgments\n---------------\n\nThe REST steps are based on Behat WebApiExtension [1]_\n\n.. [1] https://github.com/Behat/WebApiExtension\n\n.. |Build Status| image:: https://travis-ci.org/jefersondaniel/behave-web-api.svg\n :target: https://travis-ci.org/jefersondaniel/behave-web-api", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/jefersondaniel/behave-web-api", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "behave-web-api", "package_url": "https://pypi.org/project/behave-web-api/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/behave-web-api/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jefersondaniel/behave-web-api" }, "release_url": "https://pypi.org/project/behave-web-api/1.0.6/", "requires_dist": null, "requires_python": null, "summary": "Provides testing for JSON APIs with Behave", "version": "1.0.6" }, "last_serial": 2003672, "releases": { "1.0.1": [], "1.0.2": [ { "comment_text": "", "digests": { "md5": "8226cb35e382c186505dd314f118145c", "sha256": "31f25e165ccdfa07238853d436c1dd5febc822bc0485edfef558ae827613a9e0" }, "downloads": -1, "filename": "behave-web-api-1.0.2.tar.gz", "has_sig": false, "md5_digest": "8226cb35e382c186505dd314f118145c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4046, "upload_time": "2016-03-12T21:24:17", "url": "https://files.pythonhosted.org/packages/9b/3c/7549a2375b65f380d0b83871033482d472fd292f144f391265e43d5a8a42/behave-web-api-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "e689e4e8627fa861835ed28b004c9fcc", "sha256": "c11b5c93cb62d2b756126637c136bef9ee0791786cd0a1fbf1cef35b87425a35" }, "downloads": -1, "filename": "behave_web_api-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e689e4e8627fa861835ed28b004c9fcc", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5896, "upload_time": "2016-03-12T21:25:13", "url": "https://files.pythonhosted.org/packages/5a/0b/88924a3273b59d7ae2e3297a32bf237dda61388f13753da950c8a44cc44b/behave_web_api-1.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1129606c4af421ed0925dffaedf7c4b0", "sha256": "0233ecf5ed30d60e6a04f5465efefd0b33bc7081f3ea627dd6f0101a45c10005" }, "downloads": -1, "filename": "behave-web-api-1.0.3.tar.gz", "has_sig": false, "md5_digest": "1129606c4af421ed0925dffaedf7c4b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4047, "upload_time": "2016-03-12T21:25:05", "url": "https://files.pythonhosted.org/packages/96/fa/38203c15b047a391367d09216d1e2e5708ce42cd8ce1fe9696d1d7b98cc4/behave-web-api-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "4121a89dd9400a0d94036ecdb09e9f6d", "sha256": "1f38c521312a3496a1d618d88dcd0e594bc902180fa1cf8114e3373d4113db2b" }, "downloads": -1, "filename": "behave_web_api-1.0.4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4121a89dd9400a0d94036ecdb09e9f6d", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 5920, "upload_time": "2016-03-12T21:34:32", "url": "https://files.pythonhosted.org/packages/d5/93/773b3c90cf926264010be9a01b25e6a5c895a61371e74ae6b531b9c456de/behave_web_api-1.0.4-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d4114b894ea660835d947fb423f5d258", "sha256": "9db7e1cfa8636692f26c7de8048a395a1c63fb37cba0686b18ab4ff41c3ffe9d" }, "downloads": -1, "filename": "behave-web-api-1.0.4.tar.gz", "has_sig": false, "md5_digest": "d4114b894ea660835d947fb423f5d258", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4066, "upload_time": "2016-03-12T21:34:26", "url": "https://files.pythonhosted.org/packages/f3/f9/ca42fc83fa373db2d56bc2c8b6e03cc095742673951940edbccc95e0a244/behave-web-api-1.0.4.tar.gz" } ], "1.0.5": [ { "comment_text": "", "digests": { "md5": "0d4e562736b0055b6ed402f27727fa01", "sha256": "6c04c5d93534dc1a43c6624bbab4d2d76fc5364009e5b986cd5622c3d8506d14" }, "downloads": -1, "filename": "behave_web_api-1.0.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0d4e562736b0055b6ed402f27727fa01", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6036, "upload_time": "2016-03-12T21:51:46", "url": "https://files.pythonhosted.org/packages/ef/3b/dc517bb810acc4391c9259b391e0459c16431829c41e4c57249725219f7c/behave_web_api-1.0.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "11341973311c6274c974176e2b020a14", "sha256": "021f1bcf6ae75bc765782c6b173a353aeac95e7b4c7834098331071e8b5d7ab3" }, "downloads": -1, "filename": "behave-web-api-1.0.5.tar.gz", "has_sig": false, "md5_digest": "11341973311c6274c974176e2b020a14", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4255, "upload_time": "2016-03-12T21:51:36", "url": "https://files.pythonhosted.org/packages/b9/46/40852f4af7b11796ad859e64e0f7571203cf58b75c995be9938c2e65fc23/behave-web-api-1.0.5.tar.gz" } ], "1.0.6": [ { "comment_text": "", "digests": { "md5": "37d48393168f9aff70edfbc7b873257c", "sha256": "f9b26bd95c191b862b9def61edd2e00eb751281852cd5d86509544ee73d84f35" }, "downloads": -1, "filename": "behave_web_api-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "37d48393168f9aff70edfbc7b873257c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6295, "upload_time": "2016-03-12T23:26:51", "url": "https://files.pythonhosted.org/packages/d0/47/1cf83b07d8c6f14d7e5a8f0ecfa00dd534de8190564336c2cc69dbeba1d4/behave_web_api-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0aa12b8745999ceba1f0cd496357e60a", "sha256": "29c4b1ccefa357de28065a3f4589777c9fa7695f8c35e0e558ea05afbbc0770e" }, "downloads": -1, "filename": "behave-web-api-1.0.6.tar.gz", "has_sig": false, "md5_digest": "0aa12b8745999ceba1f0cd496357e60a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4454, "upload_time": "2016-03-12T23:26:38", "url": "https://files.pythonhosted.org/packages/21/05/5f74976162f73c26b363aef46a1edc0a85c3e76c7a7fa1dcbae80705d92c/behave-web-api-1.0.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "37d48393168f9aff70edfbc7b873257c", "sha256": "f9b26bd95c191b862b9def61edd2e00eb751281852cd5d86509544ee73d84f35" }, "downloads": -1, "filename": "behave_web_api-1.0.6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "37d48393168f9aff70edfbc7b873257c", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6295, "upload_time": "2016-03-12T23:26:51", "url": "https://files.pythonhosted.org/packages/d0/47/1cf83b07d8c6f14d7e5a8f0ecfa00dd534de8190564336c2cc69dbeba1d4/behave_web_api-1.0.6-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0aa12b8745999ceba1f0cd496357e60a", "sha256": "29c4b1ccefa357de28065a3f4589777c9fa7695f8c35e0e558ea05afbbc0770e" }, "downloads": -1, "filename": "behave-web-api-1.0.6.tar.gz", "has_sig": false, "md5_digest": "0aa12b8745999ceba1f0cd496357e60a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4454, "upload_time": "2016-03-12T23:26:38", "url": "https://files.pythonhosted.org/packages/21/05/5f74976162f73c26b363aef46a1edc0a85c3e76c7a7fa1dcbae80705d92c/behave-web-api-1.0.6.tar.gz" } ] }