{"id":21874021,"url":"https://github.com/ianjure/fancytest","last_synced_at":"2025-03-21T23:17:27.591Z","repository":{"id":250077740,"uuid":"833409067","full_name":"ianjure/fancytest","owner":"ianjure","description":"A python package that tests function call instances using a simple decorator.","archived":false,"fork":false,"pushed_at":"2024-08-27T05:19:34.000Z","size":22,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T17:37:20.132Z","etag":null,"topics":["decorators-python","pypi-package","python-package"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/fancytest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianjure.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-25T02:03:19.000Z","updated_at":"2024-08-27T05:19:37.000Z","dependencies_parsed_at":"2024-08-27T05:47:57.150Z","dependency_job_id":null,"html_url":"https://github.com/ianjure/fancytest","commit_stats":null,"previous_names":["ianjure/fancytest"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianjure%2Ffancytest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianjure%2Ffancytest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianjure%2Ffancytest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianjure%2Ffancytest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianjure","download_url":"https://codeload.github.com/ianjure/fancytest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244880660,"owners_count":20525515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["decorators-python","pypi-package","python-package"],"created_at":"2024-11-28T07:10:36.314Z","updated_at":"2025-03-21T23:17:27.566Z","avatar_url":"https://github.com/ianjure.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## What is Fancytest?\r\nFancytest provides a [decorator](https://www.geeksforgeeks.org/decorators-in-python/) to test function call instances in your program. It will provide the simple status of both failed and successful instances.\r\n\r\n## How to use Fancytest?\r\n```\r\npip install fancytest\r\n```\r\n\r\n```python\r\nfrom fancytest import ftest # \u003c-- IMPORT THE PACKAGE\r\n\r\n@ftest # \u003c-- ADD THE DECORATOR TO THE FUNCTION YOU WANT TO TEST (@ftest)\r\ndef add(a, b):\r\n    return a + b\r\n\r\n@ftest # \u003c-- ADD THE DECORATOR TO THE FUNCTION YOU WANT TO TEST (@ftest)\r\ndef squared(a):\r\n    return a * a\r\n\r\n# FAIL\r\nf = add(2, \"b\")\r\nsquared(f)\r\n\r\n# SUCCESS\r\ns = add(1,2)\r\nsquared(s)\r\n```\r\n\r\n#### Fancytest will output all instances with their parameters and status.\r\n```\r\nINSTANCE: add(2, 'b') : FAILED\r\nERROR: unsupported operand type(s) for +: 'int' and 'str'\r\n\r\nINSTANCE: squared(None) : FAILED\r\nERROR: unsupported operand type(s) for *: 'NoneType' and 'NoneType'\r\n\r\nINSTANCE: add(1, 2) : SUCCESS\r\nTIME: 0.000ms\r\n\r\nINSTANCE: squared(3) : SUCCESS\r\nTIME: 0.000ms\r\n```\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianjure%2Ffancytest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianjure%2Ffancytest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianjure%2Ffancytest/lists"}