{"id":22960150,"url":"https://github.com/zemfrog/zemfrog-test","last_synced_at":"2025-04-02T02:43:08.845Z","repository":{"id":103950880,"uuid":"351193511","full_name":"zemfrog/zemfrog-test","owner":"zemfrog","description":"Zemfrog unit testing tools","archived":false,"fork":false,"pushed_at":"2021-04-11T01:56:30.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-07T18:16:45.746Z","etag":null,"topics":["zemfrog"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zemfrog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2021-03-24T19:04:15.000Z","updated_at":"2021-04-09T21:13:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"b711ab30-d529-43df-b72d-bd48ec12c9dd","html_url":"https://github.com/zemfrog/zemfrog-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemfrog%2Fzemfrog-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemfrog%2Fzemfrog-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemfrog%2Fzemfrog-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zemfrog%2Fzemfrog-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zemfrog","download_url":"https://codeload.github.com/zemfrog/zemfrog-test/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246746878,"owners_count":20827061,"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":["zemfrog"],"created_at":"2024-12-14T18:31:01.431Z","updated_at":"2025-04-02T02:43:08.836Z","avatar_url":"https://github.com/zemfrog.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# zemfrog-test\r\nZemfrog unit testing tools\r\n\r\n# Features\r\n\r\n* Support automatically create unit tests for API / blueprints\r\n* Available fixtures:\r\n    - client\r\n        \u003e This is to access the Client class to interact with the API\r\n    - app_ctx\r\n        \u003e This is to enable the flask context application\r\n    - req_ctx\r\n        \u003e This is to activate the flask request context application\r\n    - user\r\n        \u003e This is to generate confirmed random users\r\n\r\n\r\n# Warning\r\n\r\nzemfrog test is available a finalizer to delete all users when the test session ends. so you need to create a special database for testing.\r\n\r\n\r\n# Usage\r\n\r\nInstall this\r\n\r\n```sh\r\npip install zemfrog-test\r\n```\r\n\r\nAnd add it to the `COMMANDS` configuration in the zemfrog application.\r\n\r\n```python\r\nCOMMANDS = [\"zemfrog_test\"]\r\n```\r\n\r\nNow that you have the `test` command, here is a list of supported commands:\r\n\r\n* `init` - Initialize the tests directory in the project directory.\r\n* `new` - Create unit tests for the API or blueprint. (The names entered must match `APIS` and `BLUEPRINTS` configurations. For example `zemfrog_auth.jwt`)\r\n* `run` - To run unit tests. **It doesn't work with the `pytest` command, don't know why. :/**\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemfrog%2Fzemfrog-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzemfrog%2Fzemfrog-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzemfrog%2Fzemfrog-test/lists"}