{ "info": { "author": "Joakim Karlsson", "author_email": "joakim@jkarlsson.com", "bugtrack_url": null, "classifiers": [], "description": "describe it\n===========\n\n|buildstatus|_\n\nDescribe-it is a nose plugin that allows you to write unit tests that are more\nlike executable examples of how a component should work than just being tests.\n\nThe other benefit is the ability to describe how a component behaves in certain\ncontexts, where one context may build on a previously defined context by using\nnesting.\n\nInstalling\n----------\n.. code:: bash\n\n $ pip install describe-it\n\nWriting\n-------\nAny module that ends with 'spec' is considered to contain specifications/tests\nfor describe_it.\n\n.. code:: bash\n\n $ vim myfirst_spec.py\n\n...and the content:\n\n.. code:: python\n\n from game import Game\n from describe_it import describe, it, before_each, Fixture\n\n @describe # This declares a test context.\n def a_game():\n f = Fixture() # Fixture is a hack to get around\n # Python's implementation of closures.\n # You can use other methods, such as\n # nonlocal if you like.\n\n @before_each # Will be called before each 'it'\n def setup():\n f.game = Game()\n\n @after_each # Will be called after each 'it'\n def teardown():\n perform_post_test_cleanup_if_needed() # This should rarely be needed!\n\n @it # This marks a test method.\n def is_player_ones_turn():\n assert f.game.current_player == 1 # describe_it doesn't come with an\n # assertion lib. Pick any one you like.\n\n @describe # This is a nested context that\n def in_second_round(): # augments the context above.\n\n @before_each # Before each 'it' method, any\n def setup(): # before_each in outer contexts will\n f.game.play_round() # be called first. Then this method\n # will be called.\n\n @it\n def is_player_twos_turn():\n assert f.game.current_player == 2\n\n @xit # You can skip individual test methods\n def skips_tests(): # by using '@xit' or '@it_skip'\n assert True\n\n @with_data([1, 2, 3], # You can parameterize tests with\n [3, 4, 7]) # different combinations of inputs\n def adds_numbers(term_1, term_2, expected):\n assert term_1 + term_2 == expected\n\n @xdescribe # You can skip whole contexts by\n def this_context_is_marked_as_skipped(): # using '@xdescribe' or '@describe_skip'\n\n @it\n def this_test_will_be_skipped():\n assert True\n\nRunning\n-------\n.. code:: bash\n\n $ nosetests --with-describe-it\n\n.. |buildstatus| image:: https://travis-ci.org/joakimkarlsson/describe_it.svg\n.. _buildstatus: https://travis-ci.org/joakimkarlsson/describe_it", "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/joakimkarlsson/describe_it", "keywords": "unit testing,tdd,bdd,nose", "license": "The MIT License (MIT)\n\nCopyright (c) 2014 Joakim Karlsson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "describe_it", "package_url": "https://pypi.org/project/describe_it/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/describe_it/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/joakimkarlsson/describe_it" }, "release_url": "https://pypi.org/project/describe_it/2.2.2/", "requires_dist": null, "requires_python": null, "summary": "A nose plugin that supports writing describe/it style unit tests with nested contexts", "version": "2.2.2" }, "last_serial": 1639379, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8e57b14542d3cf9d8b65547ab97fa97f", "sha256": "d747e9a8424ae4c4ff94f3c4f657b8a98c2f1a094ba95997eaf9bc68bc06a700" }, "downloads": -1, "filename": "describe_it-0.1.0.tar.gz", "has_sig": false, "md5_digest": "8e57b14542d3cf9d8b65547ab97fa97f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1961, "upload_time": "2014-07-14T09:55:40", "url": "https://files.pythonhosted.org/packages/e5/34/998105b9fc546163aa9b9764049bda3e11177e7005e40651f5167afe9315/describe_it-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "ad833b00ca3f8e907ebed75c0eef0187", "sha256": "c2d6fdf5f2e2023335a7194d235d88280353eb5cdf20af9018b5db7944d679b8" }, "downloads": -1, "filename": "describe_it-0.1.1.tar.gz", "has_sig": false, "md5_digest": "ad833b00ca3f8e907ebed75c0eef0187", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2002, "upload_time": "2014-07-14T11:00:51", "url": "https://files.pythonhosted.org/packages/28/13/9ce1ec1cadac635d05c8f68699aa4e07a6ecbcee51b1478d27622dc1dde9/describe_it-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "14d5ab82c8737d7c661ee0a515c8cac8", "sha256": "579060f05a8c1408f2a586e5711c8443c46cbd89aaedb9b3529790253bfc3056" }, "downloads": -1, "filename": "describe_it-0.1.2.tar.gz", "has_sig": false, "md5_digest": "14d5ab82c8737d7c661ee0a515c8cac8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2335, "upload_time": "2014-07-14T17:23:24", "url": "https://files.pythonhosted.org/packages/6e/4d/d047c4464b855cee28b222eac9ae017c0674a74f445a6cdf10048fcbdb32/describe_it-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "6f90f79616b11e307fea1cdb350d0b05", "sha256": "b2c5ca66de101ee5a1a40102d3345598990b018546097a9820746c9df15ea817" }, "downloads": -1, "filename": "describe_it-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6f90f79616b11e307fea1cdb350d0b05", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3276, "upload_time": "2014-07-15T08:31:04", "url": "https://files.pythonhosted.org/packages/10/62/e5fdd9e76ec8126e215b36042227be02a52a3e066e1fe845910612eb5ae8/describe_it-0.1.3.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "0fbca86082f3a911ff59e2ef0747ec88", "sha256": "d89604ff9f0317e8c9ac92290b727f1cd6858234402031a442080fd27d9bfb60" }, "downloads": -1, "filename": "describe_it-0.1.5.tar.gz", "has_sig": false, "md5_digest": "0fbca86082f3a911ff59e2ef0747ec88", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3307, "upload_time": "2014-07-15T08:59:13", "url": "https://files.pythonhosted.org/packages/b1/59/29a3306dc1b7c1880d839bb0f505dba369c4a2d8dae068a7cdb74ee427dd/describe_it-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "1f686b6cae2d4de856a76b3b7b5acc65", "sha256": "8ea5bda734151a200996cf73cd7166543b6e51c604bb0d7d27106a5c3601ddde" }, "downloads": -1, "filename": "describe_it-0.1.6.tar.gz", "has_sig": false, "md5_digest": "1f686b6cae2d4de856a76b3b7b5acc65", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3330, "upload_time": "2014-07-15T12:14:39", "url": "https://files.pythonhosted.org/packages/a8/90/35401e1fcf3b576f94562706a61a60e035a486602d84d66d08d187c04eaf/describe_it-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "3e0982d4e5d69306517eea86381455c7", "sha256": "760ef7239956dccca03a3d769e20815da4961ff20f40d47cf876d8026d624d1e" }, "downloads": -1, "filename": "describe_it-0.1.7.tar.gz", "has_sig": false, "md5_digest": "3e0982d4e5d69306517eea86381455c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3373, "upload_time": "2014-07-15T13:27:11", "url": "https://files.pythonhosted.org/packages/4c/d2/ee7d61b93976880c16900775e7ae743a473a2492cef44ce938b7734e6daa/describe_it-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "5031dce0acb2f3ffeef316cdb22f9e37", "sha256": "4d3130d4e4b4ac821e83d6bc756a476c7c01c690ec92e1112916323a34983034" }, "downloads": -1, "filename": "describe_it-0.1.8.tar.gz", "has_sig": false, "md5_digest": "5031dce0acb2f3ffeef316cdb22f9e37", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3489, "upload_time": "2014-07-16T09:48:04", "url": "https://files.pythonhosted.org/packages/49/f8/8adff9a7bb39f16dd254948d7c0ed2ce1fe3572eb5c6be56eaf557fc1841/describe_it-0.1.8.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "620cdb7145509d88a41b5a869ee229d6", "sha256": "7c1d92a465da26e4de5845d4d0a2f38cebe4f9587ceaab951441a0a70c6487c8" }, "downloads": -1, "filename": "describe_it-1.0.0.tar.gz", "has_sig": false, "md5_digest": "620cdb7145509d88a41b5a869ee229d6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3643, "upload_time": "2014-08-06T08:21:35", "url": "https://files.pythonhosted.org/packages/e4/2c/93087e1e1776fee045784d803b42b69f930ee611d42fa01ad68d3168539a/describe_it-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "a9e8d000997eddc33129100322dcdb40", "sha256": "20b2b5cb2e4aec88dc36b2768308620c0a7cc26058963595c591405eaf36f471" }, "downloads": -1, "filename": "describe_it-1.1.0.tar.gz", "has_sig": false, "md5_digest": "a9e8d000997eddc33129100322dcdb40", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4241, "upload_time": "2014-08-08T13:06:59", "url": "https://files.pythonhosted.org/packages/a6/07/d618cede50f4a8c4628c9419fd4682652cc7fef2bec783f6c89592759b8b/describe_it-1.1.0.tar.gz" } ], "2.0.0": [ { "comment_text": "", "digests": { "md5": "553568431d1d71d7b6a19577d21f8a23", "sha256": "b7fd2dae18bc696da198fa86da78d60e0f04c6c9e2e6030bdf71648a12c41b7d" }, "downloads": -1, "filename": "describe_it-2.0.0.zip", "has_sig": false, "md5_digest": "553568431d1d71d7b6a19577d21f8a23", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9479, "upload_time": "2015-04-19T11:09:55", "url": "https://files.pythonhosted.org/packages/f4/b4/b1d6d5c96e76384d6b5f2dd564c949a7c1208e8ccf3672938520a3b1b8d0/describe_it-2.0.0.zip" } ], "2.1.0": [ { "comment_text": "", "digests": { "md5": "a3c796231afb756deeff82629139eced", "sha256": "0fe507cbd3653d4b552270ad7912eb69b85409c2e5af88dc687be84f14be0596" }, "downloads": -1, "filename": "describe_it-2.1.0.zip", "has_sig": false, "md5_digest": "a3c796231afb756deeff82629139eced", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9491, "upload_time": "2015-05-08T15:04:46", "url": "https://files.pythonhosted.org/packages/9f/a1/ff71f62817fa3cc457c0d612bde921a4f8f911e8eefc3c3561d8b9c5b4ae/describe_it-2.1.0.zip" } ], "2.2.0": [ { "comment_text": "", "digests": { "md5": "c063adf91907359e7075e136a6b40739", "sha256": "affc0d9f64d184ed949efedb8fbe0acdf29fc590f24e09ea549bcfecbabd97d7" }, "downloads": -1, "filename": "describe_it-2.2.0.tar.gz", "has_sig": false, "md5_digest": "c063adf91907359e7075e136a6b40739", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5055, "upload_time": "2015-07-16T09:02:57", "url": "https://files.pythonhosted.org/packages/d7/b2/85c8e8dfd7d28d5d370ac8833994341b8ed1e01530a4c7617d0c232bb0cf/describe_it-2.2.0.tar.gz" } ], "2.2.1": [ { "comment_text": "", "digests": { "md5": "c5e83473b2df052e662c5fb21c359bfa", "sha256": "0cc0e1a936ae00a339e16afd9eafca9993fce7cdaef87fe3ebb67eb06f945846" }, "downloads": -1, "filename": "describe_it-2.2.1.tar.gz", "has_sig": false, "md5_digest": "c5e83473b2df052e662c5fb21c359bfa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5044, "upload_time": "2015-07-16T09:07:48", "url": "https://files.pythonhosted.org/packages/c7/93/c0b55459d4a57e07e689e7a725164b4840cefb303e8ef74348f01b343e2b/describe_it-2.2.1.tar.gz" } ], "2.2.2": [ { "comment_text": "", "digests": { "md5": "8c0dd31eb9ac53705927b6ca0173effc", "sha256": "538b684ad6e6920da35b57ae4f52cdc35e94ba7941e6b4b7d65e38972f75d336" }, "downloads": -1, "filename": "describe_it-2.2.2.tar.gz", "has_sig": false, "md5_digest": "8c0dd31eb9ac53705927b6ca0173effc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5083, "upload_time": "2015-07-18T17:40:31", "url": "https://files.pythonhosted.org/packages/75/ca/175bfd9a0de65af77cf7c197c59ea13c97bdb6c1dfb87dd856153b100dcd/describe_it-2.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8c0dd31eb9ac53705927b6ca0173effc", "sha256": "538b684ad6e6920da35b57ae4f52cdc35e94ba7941e6b4b7d65e38972f75d336" }, "downloads": -1, "filename": "describe_it-2.2.2.tar.gz", "has_sig": false, "md5_digest": "8c0dd31eb9ac53705927b6ca0173effc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5083, "upload_time": "2015-07-18T17:40:31", "url": "https://files.pythonhosted.org/packages/75/ca/175bfd9a0de65af77cf7c197c59ea13c97bdb6c1dfb87dd856153b100dcd/describe_it-2.2.2.tar.gz" } ] }