{ "info": { "author": "Julian Harley", "author_email": "julian.harley@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha" ], "description": "===\r\nCreate tests from current behaviour\r\n===\r\nImagine you have to refactor a large, undocumented (hence untested!) python code base.\r\n \r\nThis utility captures this functionality by generating test cases during test executions of the code. This assists refactoring as the current expected behaviour has been captured.\r\n\r\n====\r\nWhy 'Astrotest'?\r\n====\r\n\r\n'Astroturfing' is a term meaning to create inauthentic comments or discussion to influence or overwhelm natural organic debate. Hence 'Astro-testing': it's not authentically TDD; it can create a large number of tests automatically.\r\n\r\n====\r\nExample\r\n====\r\n\r\nIf the following function has the test_logging decorator::\r\n\r\n\r\n @astro_test\r\n def simplefn(a,b):\r\n return a+b\r\n \r\nand is called with:\r\n\r\n simplefn(a=1,b=2)\r\n\r\nit'll create a unit test file with the following (comments etc. omitted): \r\n \r\n def test_simplefn(self):\r\n self.assertEqual(simplefn(a=1, b=2), 3)", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/julzhk/astrotest", "keywords": "tdd, tests", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "astrotest", "package_url": "https://pypi.org/project/astrotest/", "platform": "", "project_url": "https://pypi.org/project/astrotest/", "project_urls": { "Homepage": "https://github.com/julzhk/astrotest" }, "release_url": "https://pypi.org/project/astrotest/1.0.0/", "requires_dist": null, "requires_python": null, "summary": "Capture functions arguments and results to create a unit test file for that combination, to assist refactoring.", "version": "1.0.0" }, "last_serial": 1639004, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e739e7c63e15724455a2684cbb264f99", "sha256": "f031e82cf3753e2e54fdb6f17418d652ee6f3396aec316eaaa38db6851c7d3b6" }, "downloads": -1, "filename": "astrotest-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e739e7c63e15724455a2684cbb264f99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3461, "upload_time": "2015-07-17T21:46:30", "url": "https://files.pythonhosted.org/packages/7f/45/66b398b36bafc402fcd3fda5fdabcbddea51f2240e33851ae5ff1dba3c6a/astrotest-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "61b7d4ff6439c5065436c18f078d4caa", "sha256": "7282d4117ade1a05bc2d9be64b0ba7cc722842180b0c35cc26e93f0a45656228" }, "downloads": -1, "filename": "astrotest-0.1.1.tar.gz", "has_sig": false, "md5_digest": "61b7d4ff6439c5065436c18f078d4caa", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3616, "upload_time": "2015-07-18T09:00:03", "url": "https://files.pythonhosted.org/packages/a8/ca/a97d883b3c41bcb8722ceb97acedc71f0b5f7fc664073fbf1874def5fcc3/astrotest-0.1.1.tar.gz" } ], "1.0.0": [] }, "urls": [] }