{ "info": { "author": "sprin", "author_email": "sprin.pypi@fastmail.net", "bugtrack_url": null, "classifiers": [], "description": "==============\nnose-easy-init\n==============\n\nA nose plugin, enabled by default, which executes a user-defined\ninitialization function prior to nose collecting or running any tests. The\nuser specifies the python module that contains the initialization function,\n``main``, in an environment variable.\n\nUse one of two environment variables to specify the module:\n\n.. code-block:: bash\n\n NOSE_INIT_MODULE=app.tests.nose_init\n NOSE_INIT_PATH=/path/to/my/app/tests/nose_init.py\n\nThen, run your nose tests as usual.\n\nExample initialization module\n-----------------------------\n\nLet's assume that we've named our initialization module ``nose_init.py`` and\nsaved it in ``/path/to/my/app/tests/nose_init.py``. That file must contain a\n``main`` function. For example:\n\n.. code-block:: python\n\n \"\"\"\n Initialization script which is imported when ``nosetests`` is run.\n The main function will be executed before any other application code\n is imported.\n \"\"\"\n\n def main():\n \"\"\"nose_easy_init will call this before each ``nosetests`` run.\"\"\"\n\n setup_my_test_environment()\n setup_my_test_database()\n etc()\n\nThen, before running ``nosetests``, set one of two environment variables to\nspecify the module:\n\n.. code-block:: bash\n\n NOSE_INIT_MODULE=app.tests.nose_init\n NOSE_INIT_PATH=/path/to/my/app/tests/nose_init.py\n\nNote that if both the environment variables are defined, the filesystem path,\n``NOSE_INIT_PATH``, will take precedence over ``NOSE_INIT_MODULE``.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/sprin/nose-easy-init/tarball/1.0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/sprin/nose-easy-init", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "nose-easy-init", "package_url": "https://pypi.org/project/nose-easy-init/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nose-easy-init/", "project_urls": { "Download": "https://github.com/sprin/nose-easy-init/tarball/1.0.2", "Homepage": "https://github.com/sprin/nose-easy-init" }, "release_url": "https://pypi.org/project/nose-easy-init/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "A plugin for nose to easily specify an initialization script", "version": "1.0.2" }, "last_serial": 997726, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "5ba19c9b7e8c8267b5105d623b27b200", "sha256": "f7004f0d38749e4b718fc20cbbccca45598ffaaf6c2f9be021ce17d17a1e65f5" }, "downloads": -1, "filename": "nose-easy-init-1.0.tar.gz", "has_sig": false, "md5_digest": "5ba19c9b7e8c8267b5105d623b27b200", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1349, "upload_time": "2014-02-05T19:02:24", "url": "https://files.pythonhosted.org/packages/64/20/4f1b6f583546f3f7114d4f10167acb42eda5f8ce68a413345ce93cad516f/nose-easy-init-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "ef584a5cf3e55be907231d1a6c079e81", "sha256": "3710f531707a4c7661a39e3ef96a77a45451c4ac5c50fd113fd0e613381862ec" }, "downloads": -1, "filename": "nose-easy-init-1.0.1.tar.gz", "has_sig": false, "md5_digest": "ef584a5cf3e55be907231d1a6c079e81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1440, "upload_time": "2014-02-06T07:03:06", "url": "https://files.pythonhosted.org/packages/49/5b/0751febfc01d835ad240e3a6ebb411a19fa9d9a6e3c8e94bdbf281123171/nose-easy-init-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "a5bd8c2e980b807187d2c7cfd61d6973", "sha256": "fbc8496b21e12f086a55c527c3c1db443dbf55fb257214e8a33affad7dea7f83" }, "downloads": -1, "filename": "nose-easy-init-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a5bd8c2e980b807187d2c7cfd61d6973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1916, "upload_time": "2014-02-12T02:55:52", "url": "https://files.pythonhosted.org/packages/03/47/334097e15695aa1f2dda8847b39c08037b675163d464f2ee6c7f652367f3/nose-easy-init-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a5bd8c2e980b807187d2c7cfd61d6973", "sha256": "fbc8496b21e12f086a55c527c3c1db443dbf55fb257214e8a33affad7dea7f83" }, "downloads": -1, "filename": "nose-easy-init-1.0.2.tar.gz", "has_sig": false, "md5_digest": "a5bd8c2e980b807187d2c7cfd61d6973", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1916, "upload_time": "2014-02-12T02:55:52", "url": "https://files.pythonhosted.org/packages/03/47/334097e15695aa1f2dda8847b39c08037b675163d464f2ee6c7f652367f3/nose-easy-init-1.0.2.tar.gz" } ] }