{ "info": { "author": "Simon Law", "author_email": "sfllaw@sfllaw.ca", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries" ], "description": "=====================\n ``django-litetest``\n=====================\n\nA lightweight Django ``manage.py litetest`` command for quick unittest\nruns.\n\nIf you've been developing in Django for a while, you probably have\nplenty of tests written. This is great, but they probably take a long\ntime to run. If you do any sort of Test-Driven Development, slow tests\nmeans a frustrating edit-test loop.\n\n**django-litetest** helps you run quick, lightweight tests by doing a\nfew things:\n\n* Use in-memory SQLite databases instead of your usual test\n databases,\n* Use in-memory caches instead of your usual caches,\n* If you're using South, creates models directly.\n\nWith **django-litetest**, fixing a bug becomes as quick as this:\n\n1. Add a new test to reproduce the bug,\n2. Run ``manage.py litetest`` *testname*,\n3. Edit the code to fix the bug,\n4. Run ``manage.py litetest`` *testname* again,\n5. Run ``manage.py test`` to ensure that all your tests pass.\n\n\nInstallation\n============\n\nYou can get a copy of the source by using::\n\n $ git clone https://github.com/sfllaw/django-litetest.git\n\nThis app requires:\n\n* Python 2.6 or higher,\n* Django 1.3 or higher,\n* `SpatiaLite`_ (optional for GIS).\n\nAs well, this app is available from PyPi::\n\n $ pip install django-litetest\n\n.. _SpatiaLite: https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/spatialite/\n\n\nConfiguration\n=============\n\nIn your Django ``settings`` file:\n\n* Add ``'django_litetest'`` to ``INSTALLED_APPS`` (after ``'south'``\n if you are using it),\n\n* Add ``'LITETEST': True`` to each of the ``DATABASES`` you want sped up,\n\n* Add ``'LITETEST': True`` to each of the ``CACHES`` you want sped up,\n\n* If you are using South, set ``SOUTH_TESTS_MIGRATE = 'LITETEST'`` to\n avoid migrations.\n\n\nExample ``settings`` file\n-------------------------\n\n::\n\n INSTALLED_APPS = (\n 'south',\n 'django_litetest',\n ...\n )\n\n DATABASES = {\n 'default': {\n 'ENGINE': 'django.db.backends.mysql',\n 'NAME': 'db',\n 'USER': 'user',\n 'PASSWORD': 'password',\n 'HOST': 'db.example.com',\n 'PORT': '',\n 'LITETEST': True,\n }\n }\n\n CACHES = {\n 'default': {\n 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',\n 'LOCATION': 'memcache.example.com:11211',\n 'LITETEST': True,\n },\n }\n\n SOUTH_TESTS_MIGRATE = 'LITETEST'\n\n\n\nReporting bugs and submitting patches\n=====================================\n\nPlease check our `issue tracker`_ for known bugs and feature requests.\n\nWe accept pull requests for fixes and new features.\n\n\nAuthors\n=======\n\nSimon Law \n\n\n.. _issue tracker: https://github.com/sfllaw/django-litetest/issues", "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/sfllaw/django-litetest", "keywords": null, "license": "Apache Software License, version 2.0", "maintainer": null, "maintainer_email": null, "name": "django-litetest", "package_url": "https://pypi.org/project/django-litetest/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-litetest/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/sfllaw/django-litetest" }, "release_url": "https://pypi.org/project/django-litetest/1.0/", "requires_dist": null, "requires_python": null, "summary": "A lightweight Django \"test\" command for quick unittest runs.", "version": "1.0" }, "last_serial": 1108397, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "468fd699809235f445f4913c58ec157a", "sha256": "15fc214cd3c8e6353bae131abf9c149a435abe448cf084955d3173002b781c5d" }, "downloads": -1, "filename": "django-litetest-1.0.tar.gz", "has_sig": false, "md5_digest": "468fd699809235f445f4913c58ec157a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8706, "upload_time": "2013-03-04T02:09:18", "url": "https://files.pythonhosted.org/packages/8a/12/7373b89cd57d0edaf169556925bac80c13882aee67b2e1cd1d3018090951/django-litetest-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "468fd699809235f445f4913c58ec157a", "sha256": "15fc214cd3c8e6353bae131abf9c149a435abe448cf084955d3173002b781c5d" }, "downloads": -1, "filename": "django-litetest-1.0.tar.gz", "has_sig": false, "md5_digest": "468fd699809235f445f4913c58ec157a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8706, "upload_time": "2013-03-04T02:09:18", "url": "https://files.pythonhosted.org/packages/8a/12/7373b89cd57d0edaf169556925bac80c13882aee67b2e1cd1d3018090951/django-litetest-1.0.tar.gz" } ] }