{ "info": { "author": "Max Hurl", "author_email": "max@maxhurl.co.uk", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3 :: Only", "Topic :: Internet :: WWW/HTTP" ], "description": "# Bravado Django Test Client\n\n[![Build Status](https://travis-ci.org/maximilianhurl/bravado-django-test-client.svg?branch=master)](https://travis-ci.org/maximilianhurl/bravado-django-test-client)\n\n[Django Test Client](https://docs.djangoproject.com/en/2.1/topics/testing/tools/\\#the-test-client) compatible HTTP Client with [Bravado](https://github.com/Yelp/bravado).\n\nThis allows your Django API and OpenAPI v2 (Swagger) specification files to be tested against each other in your unit tests. The aim being to quickly highlight any potential discrepancies between the specification and your actual API.\n\n## Basic Usage\n\n```python\nfrom bravado.client import SwaggerClient\nfrom bravado.swagger_model import load_file\nfrom bravado_django_test_client.django_test_client import DjangoTestHttpClient\nfrom bravado_django_test_client.config import config\nfrom rest_framework.test import APIClient\n\n\nswagger_file = load_file(\"schema.yaml\")\n\ntest_client = APIClient() # or the standard django test client\n\nbravado_http_client = DjangoTestHttpClient(test_client)\n\nclient = SwaggerClient.from_spec(swagger_file, http_client=bravado_http_client, config=config)\n\n# now use as you would a normal bravado client\npet_result = client.pet.getPetById(petId=42).response().result\n```\n\nSee the tests directory for a more complete example.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/maximilianhurl/bravado-django-test-client", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "bravado-django-test-client", "package_url": "https://pypi.org/project/bravado-django-test-client/", "platform": "", "project_url": "https://pypi.org/project/bravado-django-test-client/", "project_urls": { "Homepage": "https://github.com/maximilianhurl/bravado-django-test-client" }, "release_url": "https://pypi.org/project/bravado-django-test-client/1.0.0/", "requires_dist": [ "django", "bravado" ], "requires_python": "", "summary": "Bravado Django Test Client", "version": "1.0.0" }, "last_serial": 4887174, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "851f09b7c931d6db90e0a38499385227", "sha256": "2ceacf1c2a5f7e1ac08b106aa0528564269542af2a9d4854aaa5ddff57848351" }, "downloads": -1, "filename": "bravado_django_test_client-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "851f09b7c931d6db90e0a38499385227", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4180, "upload_time": "2019-02-18T22:58:02", "url": "https://files.pythonhosted.org/packages/28/6a/e4e22036415c1ac0a582a170619a8f19ba62d0cddb6d904ed433b0bd9acf/bravado_django_test_client-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3e78d25178c3c0e6aaccffa7db32988b", "sha256": "92e438d64dcc8598006aebc2715ea6d25cf03407f1a31fc1c662fa3edff06315" }, "downloads": -1, "filename": "bravado_django_test_client-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3e78d25178c3c0e6aaccffa7db32988b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2898, "upload_time": "2019-02-18T22:58:04", "url": "https://files.pythonhosted.org/packages/9e/d4/92cc96bfd9d4703befc6615cb331f6e46a536f05b750df6210237400476f/bravado_django_test_client-0.0.1.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "7a85c2d026516d4ec4e21043ceb70697", "sha256": "4a6caac778fb6d9873123810e29afffaf94e17146048f08a1699158b419c8a2d" }, "downloads": -1, "filename": "bravado_django_test_client-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7a85c2d026516d4ec4e21043ceb70697", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7602, "upload_time": "2019-03-02T00:04:10", "url": "https://files.pythonhosted.org/packages/74/1a/a278a13fb609b6f55e9ec471d1d0bcbd89004c82dd72537e6fa7632f711e/bravado_django_test_client-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a602b82111b8cef0aee80d74ee78cdb6", "sha256": "51f6fb70ae645ad79b9e2c7cc911459640924457dd8414cc6c130b3648c37d6b" }, "downloads": -1, "filename": "bravado_django_test_client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a602b82111b8cef0aee80d74ee78cdb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5443, "upload_time": "2019-03-02T00:04:12", "url": "https://files.pythonhosted.org/packages/dc/5f/9107bd3eb07fa2b81f7d41358513dd2d2cd04d18586feb9fd5faa868edf5/bravado_django_test_client-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7a85c2d026516d4ec4e21043ceb70697", "sha256": "4a6caac778fb6d9873123810e29afffaf94e17146048f08a1699158b419c8a2d" }, "downloads": -1, "filename": "bravado_django_test_client-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7a85c2d026516d4ec4e21043ceb70697", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7602, "upload_time": "2019-03-02T00:04:10", "url": "https://files.pythonhosted.org/packages/74/1a/a278a13fb609b6f55e9ec471d1d0bcbd89004c82dd72537e6fa7632f711e/bravado_django_test_client-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a602b82111b8cef0aee80d74ee78cdb6", "sha256": "51f6fb70ae645ad79b9e2c7cc911459640924457dd8414cc6c130b3648c37d6b" }, "downloads": -1, "filename": "bravado_django_test_client-1.0.0.tar.gz", "has_sig": false, "md5_digest": "a602b82111b8cef0aee80d74ee78cdb6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5443, "upload_time": "2019-03-02T00:04:12", "url": "https://files.pythonhosted.org/packages/dc/5f/9107bd3eb07fa2b81f7d41358513dd2d2cd04d18586feb9fd5faa868edf5/bravado_django_test_client-1.0.0.tar.gz" } ] }