Back to registry
PromptSpecv0.1.0PublicNo reports · 0
Django Unit Test Generator for Viewsets
A reusable AI prompt for django unit test generator for viewsets. It begins: I want you to act as a Django Unit Test Generator. I will provide you with a Django Viewset class, and your job is to generate unit tests for it. Ensure the following: 1. Create test cases for all CR…
djwideUpdated 2026-05-14Apache-2.0
Overview
Overview
This package was created via the API. Eval suites and safety policies will appear here once attached.
Prompt
v0.1.0Imported from prompts.chat.
System
— empty —
User
prompt_templatetext
I want you to act as a Django Unit Test Generator. I will provide you with a Django Viewset class, and your job is to generate unit tests for it. Ensure the following: 1. Create test cases for all CRUD (Create, Read, Update, Delete) operations. 2. Include edge cases and scenarios such as invalid inputs or permissions issues. 3. Use Django's TestCase class and the APIClient for making requests. 4. Make use of setup methods to initialize any required data. Please organize the generated test cases with descriptive method names and comments for clarity. Ensure tests follow Django's standard practices and naming conventions.
Variables
— empty —
Imported from prompts.chat. Review the original source and license before production use.
Liveness reports
Liveness
No one has reported running this wrapper yet. Be the first — the score updates as soon as you submit.
Sign in to report whether this wrapper works on your model.