Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
unit-tests - Prompt - OpenSmartRoute
Promptv1.0.0
unit-tests
Generate unit tests using the pytest framework. The unit tests should cover all critical functions and edge cases. Create new unit test for each scenario. Whenever possible, use mocking or test double
Prompt file imported from knowitcz/gen-ai-08-31 (.github/prompts/unit-tests.prompt.md). Copyright stays with the author.
Generate unit tests using the pytest framework.
The unit tests should cover all critical functions and edge cases. Create new unit test for each scenario.
Whenever possible, use mocking or test doubles to isolate the unit being tested. If there are already existing mocks or test doubles in the codebase, reuse them.
Do not duplicate tests that already exist.
Ensure that the tests are clear, concise, and maintainable.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
Generate unit tests using the pytest framework.
The unit tests should cover all critical functions and edge cases. Create new unit test for each scenario.
Whenever possible, use mocking or test doubles to isolate the unit being tested. If there are already existing mocks or test doubles in the codebase, reuse them.
Do not duplicate tests that already exist.
Ensure that the tests are clear, concise, and maintainable.
Manifest
The prompt text and its fill-in variables. Copy it or fetch it by URL from your own code.
{
"prompt": "Generate unit tests using the pytest framework.\nThe unit tests should cover all critical functions and edge cases. Create new unit test for each scenario.\nWhenever possible, use mocking or test doubles to isolate the unit being tested. If there are already existing mocks or test doubles in the codebase, reuse them.\nDo not duplicate tests that already exist.\nEnsure that the tests are clear, concise, and maintainable.",
"variables": [],
"notes": "Generate unit tests using the pytest framework. The unit tests should cover all critical functions and edge cases. Create new unit test for each scenario. Whenever possible, use mocking or test doubles to isolate the unit being tested. If there are already existing mocks or test doubles in the codebase, reuse them. Do not duplicate tests that already exist. Ensure that the tests are clear, concise, and maintainable.",
"metadata": {
"source": {
"provider": "github-prompts",
"repository": "https://github.com/knowitcz/gen-ai-08-31",
"path": ".github/prompts/unit-tests.prompt.md",
"ref": "4f05c6125e45f9ba14926e4f54bf96382404aa21",
"url": "https://github.com/knowitcz/gen-ai-08-31/blob/4f05c6125e45f9ba14926e4f54bf96382404aa21/.github/prompts/unit-tests.prompt.md",
"key": "knowitcz/gen-ai-08-31/.github/prompts/unit-tests.prompt.md"
}
}
}
Fetch it by URL: GET /api/v1/registry/knowitcz-gen-ai-08-31-unit-tests-prompt/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.