{ "info": { "author": "Hugo Lopes Tavares", "author_email": "hltbra@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Topic :: Software Development :: Documentation", "Topic :: Software Development :: Testing" ], "description": "A BDD tool for writing specifications using Given-When-Then template\n====================================================================\n\nThe goal of *pyhistorian* is to write an internal Given-When-Then template using Python.\nThe ideas came from JBehave, RBehave, Cucumber and others.\n\nIt's possible to write your stories in English and Portuguese, choose your preferred.\n\nA good example of use ``[en-us, by default]`` follows (call this file *calculator.py*)::\n\n from should_dsl import *\n from pyhistorian import *\n\n class Calculator(object):\n def sum(self, n1, n2):\n return n1+n2\n\n\n class SpecifyingMyNewCalculator(Story):\n \"\"\"As a lazy mathematician\n I want to use a calculator\n So that I don't waste my time thinking\"\"\"\n colored = True\n template_color = 'yellow'\n scenarios = ['SumScenario'] # optional\n\n\n class SumScenario(Scenario):\n @Given('I have a calculator')\n def set_my_calculator(self):\n self.calculator = Calculator()\n\n @When('I enter with 1 + 1')\n def sum_one_to_one(self):\n self.result = self.calculator.sum(1, 1)\n\n @Then('I have $value as result', 2)\n def get_result(self, value):\n self.result |should_be| value\n\n\n if __name__ == '__main__':\n SpecifyingMyNewCalculator.run()\n\nRunning::\n\n $ python calculator.py \n Story: Specifying my new calculator\n As a lazy mathematician\n I want to use a calculator\n So that I don't waste my time thinking\n\n Scenario 1: Sum of 1 and 1\n Given I have a calculator ... OK\n When I enter with 1 + 1 ... OK\n Then I have 2 as result ... OK\n\n Ran 1 scenarios with 0 failures, 0 errors and 0 pending steps\n\n\npyhistorian is at github.com\n----------------------------\nDue to DVCS I moved pyhistorian from `Google Gode `_ to `github.com `_. \n\nYou can get it at `here `_:\n\nhttp://github.com/hugobr/pyhistorian", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/hugobr/pyhistorian", "keywords": "bdd dsl python", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "pyhistorian", "package_url": "https://pypi.org/project/pyhistorian/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyhistorian/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/hugobr/pyhistorian" }, "release_url": "https://pypi.org/project/pyhistorian/0.6.8/", "requires_dist": null, "requires_python": null, "summary": "pyhistorian is a BDD tool for writing specifications using Given-When-Then template", "version": "0.6.8" }, "last_serial": 797281, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "56164b9c31a233e2275ca80e9bd11d81", "sha256": "2e3622e6fa7c5dd8111d4446b59abb7fa9059555f2e53eac03b059fc4bea1b53" }, "downloads": -1, "filename": "pyhistorian-0.5-py2.4.egg", "has_sig": false, "md5_digest": "56164b9c31a233e2275ca80e9bd11d81", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 31634, "upload_time": "2009-06-27T07:28:00", "url": "https://files.pythonhosted.org/packages/a5/e9/bad455dbc99f1c75e84b8a8ec8ab1eae622b6a1853e007ba8055ae77bf43/pyhistorian-0.5-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "026bf647237d974ecf6d7230570e80c9", "sha256": "f26ef6c1738c1aa84072cee974ebe5bde1326d883ff9e4e3f617d8223d822f56" }, "downloads": -1, "filename": "pyhistorian-0.5-py2.5.egg", "has_sig": false, "md5_digest": "026bf647237d974ecf6d7230570e80c9", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 31456, "upload_time": "2009-06-27T07:28:37", "url": "https://files.pythonhosted.org/packages/a2/42/1fad63b805aa6978790eee85177e6485b3189760a228c52c33d2abd2b381/pyhistorian-0.5-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "32798900cc4973f2ee294641abda17bc", "sha256": "4a369dfdb07d59afd3956f04790a23ca9204cfc81f5b321d3aae71be0b6a7c12" }, "downloads": -1, "filename": "pyhistorian-0.5.tar.gz", "has_sig": false, "md5_digest": "32798900cc4973f2ee294641abda17bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9273, "upload_time": "2009-06-27T07:27:58", "url": "https://files.pythonhosted.org/packages/05/6a/69b5c54d28ad85dc4d3673855db3d791555bd39bc6f2212387fffd74d745/pyhistorian-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "96e517eaefbce671d81379b94b54367f", "sha256": "1e5a52a8efc3196174d52361bcfd3f7e578e46039911ab338cc4195e34001d7c" }, "downloads": -1, "filename": "pyhistorian-0.6-py2.5.egg", "has_sig": false, "md5_digest": "96e517eaefbce671d81379b94b54367f", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 60643, "upload_time": "2009-09-25T22:39:10", "url": "https://files.pythonhosted.org/packages/2b/a0/39dab92cdfeb2200bdcbf33002d8f2aff3a045a273759612e35e85cceff2/pyhistorian-0.6-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "3daefa72570e1ddbd450e3256ee76821", "sha256": "69bbd8c98b77c7fc82fdb323160575ac35a2229f1668d04986327485d1e74f1e" }, "downloads": -1, "filename": "pyhistorian-0.6.tar.gz", "has_sig": false, "md5_digest": "3daefa72570e1ddbd450e3256ee76821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 17021, "upload_time": "2009-09-25T22:39:08", "url": "https://files.pythonhosted.org/packages/98/60/6ea1ffdbd0a65f24902fcf0d5d0b15d7e1ff03e3ecefa112e113b0b38dfb/pyhistorian-0.6.tar.gz" } ], "0.6.1": [ { "comment_text": "", "digests": { "md5": "5d632873ff9819e8e85ffd01edc55829", "sha256": "5a9f9247c9200b85c1ad427877e43a88150f681c603043e84a4ea0993206cb03" }, "downloads": -1, "filename": "pyhistorian-0.6.1-py2.5.egg", "has_sig": false, "md5_digest": "5d632873ff9819e8e85ffd01edc55829", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 60693, "upload_time": "2009-10-06T03:06:11", "url": "https://files.pythonhosted.org/packages/dc/20/0210f72e25699b5fd116fa3cf644ab1ce7976d2492b76064d809e94da449/pyhistorian-0.6.1-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "bcf0f0358d7e36c76fb91fbee004d8ee", "sha256": "fb6dfa02c779a145b0f9ec5dbdb578a9e35ed84d50d0a2bf3bb2d503a883a4c5" }, "downloads": -1, "filename": "pyhistorian-0.6.1.tar.gz", "has_sig": false, "md5_digest": "bcf0f0358d7e36c76fb91fbee004d8ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18029, "upload_time": "2009-10-06T03:06:10", "url": "https://files.pythonhosted.org/packages/e9/bd/60dabd2d7df0dff7d9beab186d196a485a5ce8c29470769bdb5143951f8b/pyhistorian-0.6.1.tar.gz" } ], "0.6.2": [ { "comment_text": "", "digests": { "md5": "a94f0d1e67f70b4aed9288d27c7813aa", "sha256": "a5383571b754acdd38c0a3e2555e308908ff6633bf7a3f56b9b959fd2d0c6e5e" }, "downloads": -1, "filename": "pyhistorian-0.6.2-py2.5.egg", "has_sig": false, "md5_digest": "a94f0d1e67f70b4aed9288d27c7813aa", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 62239, "upload_time": "2009-10-08T20:23:54", "url": "https://files.pythonhosted.org/packages/0f/49/148456e6462ff4c33ec53706fd6f787ea6dff391c8354cf21d78d6d83a07/pyhistorian-0.6.2-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "4c1fee74092d00e172cb5d43695268b1", "sha256": "58151a110ad419e6fe0eed55783d19fdebf662cc7b6bad4ae13ea1eee2251411" }, "downloads": -1, "filename": "pyhistorian-0.6.2.tar.gz", "has_sig": false, "md5_digest": "4c1fee74092d00e172cb5d43695268b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23777, "upload_time": "2009-10-08T20:23:53", "url": "https://files.pythonhosted.org/packages/95/c4/7c3e6013bf77d35579a5073dac2e627d1f834a1f05fa5a9a56ed6f342a0e/pyhistorian-0.6.2.tar.gz" } ], "0.6.3": [ { "comment_text": "", "digests": { "md5": "8326f885f33655a47d4d0f5d8ce753fe", "sha256": "fdaf576656f91ee234506cdf615101e77b33df1428f5cc278b733c4375f183cd" }, "downloads": -1, "filename": "pyhistorian-0.6.3-py2.5.egg", "has_sig": false, "md5_digest": "8326f885f33655a47d4d0f5d8ce753fe", "packagetype": "bdist_egg", "python_version": "2.5", "requires_python": null, "size": 62290, "upload_time": "2009-10-21T20:19:34", "url": "https://files.pythonhosted.org/packages/db/95/18bac2c830acd31f0f2e298ef436e0da3b7fa65b3f6774bde1fd01dfc978/pyhistorian-0.6.3-py2.5.egg" }, { "comment_text": "", "digests": { "md5": "b7a38605231019851d80e1b30ccb0deb", "sha256": "7a84085388f97d2899a6ffae3658493c9ffbc2aea8baa1286889d7982cef61a6" }, "downloads": -1, "filename": "pyhistorian-0.6.3.tar.gz", "has_sig": false, "md5_digest": "b7a38605231019851d80e1b30ccb0deb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23783, "upload_time": "2009-10-21T20:19:32", "url": "https://files.pythonhosted.org/packages/b1/25/f9d691b2bb22d46818b0ad322af98d88d7066bbcfb48c46516ec64701da0/pyhistorian-0.6.3.tar.gz" } ], "0.6.4": [], "0.6.5": [], "0.6.8": [ { "comment_text": "", "digests": { "md5": "47e559397e9bbf23048986bde7928eda", "sha256": "124fe8652dfca8c35c7027acc281148624619c11131238bf43bb3bd4b7e2a82e" }, "downloads": -1, "filename": "pyhistorian-0.6.8.tar.gz", "has_sig": false, "md5_digest": "47e559397e9bbf23048986bde7928eda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19754, "upload_time": "2010-05-05T23:54:49", "url": "https://files.pythonhosted.org/packages/46/d2/62683446775adf76cd593495302343080e68b563d140131a65c53ce784af/pyhistorian-0.6.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "47e559397e9bbf23048986bde7928eda", "sha256": "124fe8652dfca8c35c7027acc281148624619c11131238bf43bb3bd4b7e2a82e" }, "downloads": -1, "filename": "pyhistorian-0.6.8.tar.gz", "has_sig": false, "md5_digest": "47e559397e9bbf23048986bde7928eda", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 19754, "upload_time": "2010-05-05T23:54:49", "url": "https://files.pythonhosted.org/packages/46/d2/62683446775adf76cd593495302343080e68b563d140131a65c53ce784af/pyhistorian-0.6.8.tar.gz" } ] }