django-nose


Namedjango-nose JSON
Version 1.4.7 PyPI version JSON
download
home_pagehttp://github.com/jazzband/django-nose
SummaryMakes your Django tests simple and snappy
upload_time2020-08-20 02:49:43
maintainerJohn Whitlock
docs_urlNone
authorJeff Balogh
requires_python
licenseBSD
keywords django nose django-nose
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            
===========
django-nose
===========


**django-nose** provides all the goodness of `nose`_ in your Django tests, like:

* Testing just your apps by default, not all the standard ones that happen to
  be in ``INSTALLED_APPS``
* Running the tests in one or more specific modules (or apps, or classes, or
  folders, or just running a specific test)
* Obviating the need to import all your tests into ``tests/__init__.py``.
  This not only saves busy-work but also eliminates the possibility of
  accidentally shadowing test classes.
* Taking advantage of all the useful `nose plugins`_

.. _nose: https://nose.readthedocs.io/en/latest/
.. _nose plugins: http://nose-plugins.jottit.com/

It also provides:

* Fixture bundling, an optional feature which speeds up your fixture-based
  tests by a factor of 4
* Reuse of previously created test DBs, cutting 10 seconds off startup time
* Hygienic TransactionTestCases, which can save you a DB flush per test
* Support for various databases. Tested with MySQL, PostgreSQL, and SQLite.
  Others should work as well.

django-nose requires nose 1.2.1 or later, and the `latest release`_ is
recommended.  It follows the `Django's support policy`_, supporting:

* Django 1.8 (LTS) with Python 2.7, 3.4, or 3.5
* Django 1.9 with Python 2.7, 3.4, or 3.5
* Django 1.10 with Python 2.7, 3.4, or 3.5
* Django 1.11 (LTS) with Python 2.7, 3.4, 3.5, or 3.6
* Django 2.0 with Python 3.4, 3.5, 3.6, or 3.7
* Django 2.1 with Python 3.5, 3.6, or 3.7
* Django 2.2 with Python 3.5, 3.6, or 3.7

.. _latest release: https://pypi.python.org/pypi/nose
.. _Django's support policy: https://docs.djangoproject.com/en/1.8/internals/release-process/#supported-versions


Note to users
-------------

`nose`_ has been in maintenance mode since at least 2015. ``django-nose`` is in
maintenance mode as well, and the sole maintainer is no longer an active user.
See `Jazzband.co`_ to learn how ``django-nose`` is maintained and how you can
help. New projects should consider using `pytest`_, or `unittest`_ with the
`Django testing framework`_.

.. _Jazzband.co: https://jazzband.co
.. _pytest: https://docs.pytest.org/en/stable/
.. _unittest: https://docs.python.org/3/library/unittest.html
.. _Django testing framework: https://docs.djangoproject.com/en/3.1/topics/testing/

Installation
------------

You can get django-nose from PyPI with... :

.. code-block:: shell

    $ pip install django-nose

The development version can be installed with... :

.. code-block:: shell

    $ pip install -e git://github.com/jazzband/django-nose.git#egg=django-nose

Since django-nose extends Django's built-in test command, you should add it to
your ``INSTALLED_APPS`` in ``settings.py``:

.. code-block:: python

    INSTALLED_APPS = (
        ...
        'django_nose',
        ...
    )

Then set ``TEST_RUNNER`` in ``settings.py``:

.. code-block:: python

    TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'

Development
-----------
:Code:   https://github.com/jazzband/django-nose
:Issues: https://github.com/jazzband/django-nose/issues?state=open
:Docs:   https://django-nose.readthedocs.io


Changelog
---------

1.4.7 (2020-08-19)
~~~~~~~~~~~~~~~~~~
* Document Django 2.2 support, no changes needed
* Move project to `Jazzband.co <https://jazzband.co>`_
* Fix fixture loading on MySQL
  (`issue 307 <https://github.com/jazzband/django-nose/issues/307>`_,
  `dlareau <https://github.com/dlareau>`_)

1.4.6 (2018-10-03)
~~~~~~~~~~~~~~~~~~
* Document Django 2.0 and 2.1 support, no changes needed
* Document Python 3.7 support

1.4.5 (2017-08-22)
~~~~~~~~~~~~~~~~~~
* Add Django 1.11 support

1.4.4 (2016-06-27)
~~~~~~~~~~~~~~~~~~
* Add Django 1.10 support
* Drop Django 1.4 - 1.7, and Python 2.6 support
* Drop South support

1.4.3 (2015-12-28)
~~~~~~~~~~~~~~~~~~
* Add Django 1.9 support
* Support long options without equals signs, such as "--attr selected"
* Support nose plugins using callback options
* Support nose options without default values (jsatt)
* Remove Django from install dependencies, to avoid accidental upgrades
  (jsocol, willkg)
* Setting REUSE_DB to an empty value now disables REUSE_DB, instead of
  enabling it (wdoekes)

1.4.2 (2015-10-07)
~~~~~~~~~~~~~~~~~~
* Warn against using REUSE_DB=1 and FastFixtureTestCase in docs
* REUSE_DB=1 uses new transaction management in Django 1.7, 1.8 (scottsexton)
* Try to avoid accidentally using production database with REUSE_DB=1 (alexjg, eroninjapan)
* Supported Django versions limited to current supported Django version 1.4,
  1.7, and 1.8, as well as relevant Python versions.

1.4.1 (2015-06-29)
~~~~~~~~~~~~~~~~~~
* Fix version number (ezarowny)
* Fix choice options, unbreaking nose-cover (aamirtharaj-rpx, jwhitlock)
* Support 1.8 app loading system (dgladkov)
* Support non-ASCII file names (singingwolfboy)
* Better PEP8'd assertion names (roganov)

1.4 (2015-04-23)
~~~~~~~~~~~~~~~~
* Django 1.8 support (timc3, adepue, jwhitlock)
* Support --testrunner option (st4lk)
* Fix REUSE_DB second run in py3k (edrmp)

1.3 (2014-12-05)
~~~~~~~~~~~~~~~~
* Django 1.6 and 1.7 support (conrado, co3k, Nepherhotep, mbertheau)
* Python 3.3 and 3.4 testing and support (frewsxcv, jsocol)

1.2 (2013-07-23)
~~~~~~~~~~~~~~~~
* Python 3 support (melinath and jonashaag)
* Django 1.5 compat (fabiosantoscode)

1.1 (2012-05-19)
~~~~~~~~~~~~~~~~
* Django TransactionTestCases don't clean up after themselves; they leave
  junk in the DB and clean it up only on ``_pre_setup``. Thus, Django makes
  sure these tests run last. Now django-nose does, too. This means one fewer
  source of failures on existing projects. (Erik Rose)
* Add support for hygienic TransactionTestCases. (Erik Rose)
* Support models that are used only for tests. Just put them in any file
  imported in the course of loading tests. No more crazy hacks necessary.
  (Erik Rose)
* Make the fixture bundler more conservative, fixing some conceivable
  situations in which fixtures would not appear as intended if a
  TransactionTestCase found its way into the middle of a bundle. (Erik Rose)
* Fix an error that would surface when using SQLAlchemy with connection
  pooling. (Roger Hu)
* Gracefully ignore the new ``--liveserver`` option introduced in Django 1.4;
  don't let it through to nose. (Adam DePue)

1.0 (2012-03-12)
~~~~~~~~~~~~~~~~
* New fixture-bundling plugin for avoiding needless fixture setup (Erik Rose)
* Moved FastFixtureTestCase in from test-utils, so now all the
  fixture-bundling stuff is in one library. (Erik Rose)
* Added the REUSE_DB setting for faster startup and shutdown. (Erik Rose)
* Fixed a crash when printing options with certain verbosities. (Daniel Abel)
* Broke hard dependency on MySQL. Support PostgreSQL. (Roger Hu)
* Support SQLite, both memory- and disk-based. (Roger Hu and Erik Rose)
* Nail down versions of the package requirements. (Daniel Mizyrycki)



_(Older changes can be found in the full documentation)._



            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/jazzband/django-nose",
    "name": "django-nose",
    "maintainer": "John Whitlock",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "jwhitlock@mozilla.com",
    "keywords": "django nose django-nose",
    "author": "Jeff Balogh",
    "author_email": "me@jeffbalogh.org",
    "download_url": "https://files.pythonhosted.org/packages/4c/d6/a340da9854cf0a2b54e23cf9147911b1e15a831911428983dd0158572ce9/django-nose-1.4.7.tar.gz",
    "platform": "",
    "description": "\n===========\ndjango-nose\n===========\n\n\n**django-nose** provides all the goodness of `nose`_ in your Django tests, like:\n\n* Testing just your apps by default, not all the standard ones that happen to\n  be in ``INSTALLED_APPS``\n* Running the tests in one or more specific modules (or apps, or classes, or\n  folders, or just running a specific test)\n* Obviating the need to import all your tests into ``tests/__init__.py``.\n  This not only saves busy-work but also eliminates the possibility of\n  accidentally shadowing test classes.\n* Taking advantage of all the useful `nose plugins`_\n\n.. _nose: https://nose.readthedocs.io/en/latest/\n.. _nose plugins: http://nose-plugins.jottit.com/\n\nIt also provides:\n\n* Fixture bundling, an optional feature which speeds up your fixture-based\n  tests by a factor of 4\n* Reuse of previously created test DBs, cutting 10 seconds off startup time\n* Hygienic TransactionTestCases, which can save you a DB flush per test\n* Support for various databases. Tested with MySQL, PostgreSQL, and SQLite.\n  Others should work as well.\n\ndjango-nose requires nose 1.2.1 or later, and the `latest release`_ is\nrecommended.  It follows the `Django's support policy`_, supporting:\n\n* Django 1.8 (LTS) with Python 2.7, 3.4, or 3.5\n* Django 1.9 with Python 2.7, 3.4, or 3.5\n* Django 1.10 with Python 2.7, 3.4, or 3.5\n* Django 1.11 (LTS) with Python 2.7, 3.4, 3.5, or 3.6\n* Django 2.0 with Python 3.4, 3.5, 3.6, or 3.7\n* Django 2.1 with Python 3.5, 3.6, or 3.7\n* Django 2.2 with Python 3.5, 3.6, or 3.7\n\n.. _latest release: https://pypi.python.org/pypi/nose\n.. _Django's support policy: https://docs.djangoproject.com/en/1.8/internals/release-process/#supported-versions\n\n\nNote to users\n-------------\n\n`nose`_ has been in maintenance mode since at least 2015. ``django-nose`` is in\nmaintenance mode as well, and the sole maintainer is no longer an active user.\nSee `Jazzband.co`_ to learn how ``django-nose`` is maintained and how you can\nhelp. New projects should consider using `pytest`_, or `unittest`_ with the\n`Django testing framework`_.\n\n.. _Jazzband.co: https://jazzband.co\n.. _pytest: https://docs.pytest.org/en/stable/\n.. _unittest: https://docs.python.org/3/library/unittest.html\n.. _Django testing framework: https://docs.djangoproject.com/en/3.1/topics/testing/\n\nInstallation\n------------\n\nYou can get django-nose from PyPI with... :\n\n.. code-block:: shell\n\n    $ pip install django-nose\n\nThe development version can be installed with... :\n\n.. code-block:: shell\n\n    $ pip install -e git://github.com/jazzband/django-nose.git#egg=django-nose\n\nSince django-nose extends Django's built-in test command, you should add it to\nyour ``INSTALLED_APPS`` in ``settings.py``:\n\n.. code-block:: python\n\n    INSTALLED_APPS = (\n        ...\n        'django_nose',\n        ...\n    )\n\nThen set ``TEST_RUNNER`` in ``settings.py``:\n\n.. code-block:: python\n\n    TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'\n\nDevelopment\n-----------\n:Code:   https://github.com/jazzband/django-nose\n:Issues: https://github.com/jazzband/django-nose/issues?state=open\n:Docs:   https://django-nose.readthedocs.io\n\n\nChangelog\n---------\n\n1.4.7 (2020-08-19)\n~~~~~~~~~~~~~~~~~~\n* Document Django 2.2 support, no changes needed\n* Move project to `Jazzband.co <https://jazzband.co>`_\n* Fix fixture loading on MySQL\n  (`issue 307 <https://github.com/jazzband/django-nose/issues/307>`_,\n  `dlareau <https://github.com/dlareau>`_)\n\n1.4.6 (2018-10-03)\n~~~~~~~~~~~~~~~~~~\n* Document Django 2.0 and 2.1 support, no changes needed\n* Document Python 3.7 support\n\n1.4.5 (2017-08-22)\n~~~~~~~~~~~~~~~~~~\n* Add Django 1.11 support\n\n1.4.4 (2016-06-27)\n~~~~~~~~~~~~~~~~~~\n* Add Django 1.10 support\n* Drop Django 1.4 - 1.7, and Python 2.6 support\n* Drop South support\n\n1.4.3 (2015-12-28)\n~~~~~~~~~~~~~~~~~~\n* Add Django 1.9 support\n* Support long options without equals signs, such as \"--attr selected\"\n* Support nose plugins using callback options\n* Support nose options without default values (jsatt)\n* Remove Django from install dependencies, to avoid accidental upgrades\n  (jsocol, willkg)\n* Setting REUSE_DB to an empty value now disables REUSE_DB, instead of\n  enabling it (wdoekes)\n\n1.4.2 (2015-10-07)\n~~~~~~~~~~~~~~~~~~\n* Warn against using REUSE_DB=1 and FastFixtureTestCase in docs\n* REUSE_DB=1 uses new transaction management in Django 1.7, 1.8 (scottsexton)\n* Try to avoid accidentally using production database with REUSE_DB=1 (alexjg, eroninjapan)\n* Supported Django versions limited to current supported Django version 1.4,\n  1.7, and 1.8, as well as relevant Python versions.\n\n1.4.1 (2015-06-29)\n~~~~~~~~~~~~~~~~~~\n* Fix version number (ezarowny)\n* Fix choice options, unbreaking nose-cover (aamirtharaj-rpx, jwhitlock)\n* Support 1.8 app loading system (dgladkov)\n* Support non-ASCII file names (singingwolfboy)\n* Better PEP8'd assertion names (roganov)\n\n1.4 (2015-04-23)\n~~~~~~~~~~~~~~~~\n* Django 1.8 support (timc3, adepue, jwhitlock)\n* Support --testrunner option (st4lk)\n* Fix REUSE_DB second run in py3k (edrmp)\n\n1.3 (2014-12-05)\n~~~~~~~~~~~~~~~~\n* Django 1.6 and 1.7 support (conrado, co3k, Nepherhotep, mbertheau)\n* Python 3.3 and 3.4 testing and support (frewsxcv, jsocol)\n\n1.2 (2013-07-23)\n~~~~~~~~~~~~~~~~\n* Python 3 support (melinath and jonashaag)\n* Django 1.5 compat (fabiosantoscode)\n\n1.1 (2012-05-19)\n~~~~~~~~~~~~~~~~\n* Django TransactionTestCases don't clean up after themselves; they leave\n  junk in the DB and clean it up only on ``_pre_setup``. Thus, Django makes\n  sure these tests run last. Now django-nose does, too. This means one fewer\n  source of failures on existing projects. (Erik Rose)\n* Add support for hygienic TransactionTestCases. (Erik Rose)\n* Support models that are used only for tests. Just put them in any file\n  imported in the course of loading tests. No more crazy hacks necessary.\n  (Erik Rose)\n* Make the fixture bundler more conservative, fixing some conceivable\n  situations in which fixtures would not appear as intended if a\n  TransactionTestCase found its way into the middle of a bundle. (Erik Rose)\n* Fix an error that would surface when using SQLAlchemy with connection\n  pooling. (Roger Hu)\n* Gracefully ignore the new ``--liveserver`` option introduced in Django 1.4;\n  don't let it through to nose. (Adam DePue)\n\n1.0 (2012-03-12)\n~~~~~~~~~~~~~~~~\n* New fixture-bundling plugin for avoiding needless fixture setup (Erik Rose)\n* Moved FastFixtureTestCase in from test-utils, so now all the\n  fixture-bundling stuff is in one library. (Erik Rose)\n* Added the REUSE_DB setting for faster startup and shutdown. (Erik Rose)\n* Fixed a crash when printing options with certain verbosities. (Daniel Abel)\n* Broke hard dependency on MySQL. Support PostgreSQL. (Roger Hu)\n* Support SQLite, both memory- and disk-based. (Roger Hu and Erik Rose)\n* Nail down versions of the package requirements. (Daniel Mizyrycki)\n\n\n\n_(Older changes can be found in the full documentation)._\n\n\n",
    "bugtrack_url": null,
    "license": "BSD",
    "summary": "Makes your Django tests simple and snappy",
    "version": "1.4.7",
    "project_urls": {
        "Homepage": "http://github.com/jazzband/django-nose"
    },
    "split_keywords": [
        "django",
        "nose",
        "django-nose"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a55e804eda7b128162d215de14c0572717f16508cbdb899d4e839f51cef5481e",
                "md5": "dc7ce4e4f02da903b3eeedf5deba7be9",
                "sha256": "304adc447ee35b889b733d7106004f98aa401d8387ddcada5d4f2239d86790a9"
            },
            "downloads": -1,
            "filename": "django_nose-1.4.7-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc7ce4e4f02da903b3eeedf5deba7be9",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 26470,
            "upload_time": "2020-08-20T02:49:13",
            "upload_time_iso_8601": "2020-08-20T02:49:13.440697Z",
            "url": "https://files.pythonhosted.org/packages/a5/5e/804eda7b128162d215de14c0572717f16508cbdb899d4e839f51cef5481e/django_nose-1.4.7-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4cd6a340da9854cf0a2b54e23cf9147911b1e15a831911428983dd0158572ce9",
                "md5": "fe386c6e218b0f7b353494329c380a79",
                "sha256": "a4885cd002d65fd2de96e2bb2563ef477c3fbe207009360c015fca5c3b5561b7"
            },
            "downloads": -1,
            "filename": "django-nose-1.4.7.tar.gz",
            "has_sig": false,
            "md5_digest": "fe386c6e218b0f7b353494329c380a79",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 45041,
            "upload_time": "2020-08-20T02:49:43",
            "upload_time_iso_8601": "2020-08-20T02:49:43.355274Z",
            "url": "https://files.pythonhosted.org/packages/4c/d6/a340da9854cf0a2b54e23cf9147911b1e15a831911428983dd0158572ce9/django-nose-1.4.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-08-20 02:49:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jazzband",
    "github_project": "django-nose",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "tox": true,
    "lcname": "django-nose"
}
        
Elapsed time: 0.53771s