{ "info": { "author": "David Cramer", "author_email": "dcramer@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "A minimal plugin to integrate Django and py.test.\n\nUsage\n=====\n\nInstall the plugin:\n\n::\n\n pip install pytest-django-lite\n\n\nConfiguring Django\n==================\n\nYou have two options to configure your testsuite's Django settings.\n\n1. Create a conftest.py\n-----------------------\n\n.. code:: python\n\n def pytest_configure(config):\n from django.conf import settings\n\n settings.configure(\n DATABASES={},\n INSTALLED_APPS=[],\n # etc\n )\n\n\n2. Pass ``DJANGO_SETTINGS_MODULE``\n----------------------------------\n\n::\n\n DJANGO_SETTINGS_MODULE=myapp.settings py.test\n\n\nWrite Tests\n===========\n\n.. code:: python\n\n from django.test import TestCase\n from myapp.models import Foo\n\n class MyTest(TestCase):\n def test_foo(self):\n assert Foo.objects.count() == 2\n\n\n.. note:: This only supports classical Django tests (class-based inheritence)\n\n\nCredits\n=======\n\nThis was originally based on `pytest-django `_.", "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/dcramer/pytest-django-lite", "keywords": null, "license": "Apache License 2.0", "maintainer": null, "maintainer_email": null, "name": "pytest-django-lite", "package_url": "https://pypi.org/project/pytest-django-lite/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pytest-django-lite/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/dcramer/pytest-django-lite" }, "release_url": "https://pypi.org/project/pytest-django-lite/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "The bare minimum to integrate py.test with Django.", "version": "0.1.1" }, "last_serial": 985855, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9c6248670823828fa75f6731216fde29", "sha256": "f306e300b29abbb5918f987daa59bf5f5c01629125df1277322dd1ac7783772c" }, "downloads": -1, "filename": "pytest-django-lite-0.1.0.tar.gz", "has_sig": false, "md5_digest": "9c6248670823828fa75f6731216fde29", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1837, "upload_time": "2012-12-07T23:14:00", "url": "https://files.pythonhosted.org/packages/fa/28/4d041f76a2c86982254ae158fa988062fc52d1b0fe449528a9cde931c8dd/pytest-django-lite-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "38c3aaa6f616f9aeeb451e2ed592d92a", "sha256": "546c916327a3aa19976a626f6b6f0c5ed6c1d2dc005d4530045b76060aab3c0b" }, "downloads": -1, "filename": "pytest-django-lite-0.1.1.tar.gz", "has_sig": false, "md5_digest": "38c3aaa6f616f9aeeb451e2ed592d92a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2052, "upload_time": "2014-01-30T06:49:39", "url": "https://files.pythonhosted.org/packages/dd/bf/adc28cd8495d1d06e4a55948619316f2d6c3da8e0ea41f1e541572d8095f/pytest-django-lite-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "38c3aaa6f616f9aeeb451e2ed592d92a", "sha256": "546c916327a3aa19976a626f6b6f0c5ed6c1d2dc005d4530045b76060aab3c0b" }, "downloads": -1, "filename": "pytest-django-lite-0.1.1.tar.gz", "has_sig": false, "md5_digest": "38c3aaa6f616f9aeeb451e2ed592d92a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2052, "upload_time": "2014-01-30T06:49:39", "url": "https://files.pythonhosted.org/packages/dd/bf/adc28cd8495d1d06e4a55948619316f2d6c3da8e0ea41f1e541572d8095f/pytest-django-lite-0.1.1.tar.gz" } ] }