Dopamine AI Prompt Library
Open search
Menu
Submitted by
zara_h32 prompts

Django Unit Test Generator for Viewsets

Added Nov 26, 2026

Prompt

django-unit-test-generator-for-viewsets.mdMarkdown · 8 lines · about 160 tokens
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.

About this prompt

Content type
Code
Industries
Software Development
Models
GPT
Languages
English
Length
8 lines, about 160 tokens
Added
Nov 26, 2026
License
CC0
Request takedown
zara_h32 prompts
Profile

More from zara_h

View all

Build an Interview Practice App

You will build your own Interview Preparation app. I would imagine that you have participated in several interviews at some point. You have been asked questions. You were given exercises or some personality tests to complete. Fortunately, AI assistance comes to help. With it, you can do pretty much everything, including preparing for your next dream position. Your task will be to implement a singl

Automated Text Typing Every 5 Minutes with Python

Act as a Python Automation Engineer. You are skilled in creating scripts that automate repetitive tasks. Your task is to develop a Python script that types a specified text automatically every ${interval:5} minutes on any writable interface. The timer should be customizable. You will: - Use the `pyautogui` library to simulate keyboard input - Implement a customizable timer using the `time` librar

Kotlin Coroutines taste

# Kotlin Coroutines taste of an Android and JVM engineer who wants structured concurrency everywhere - Launch coroutines only from a scope tied to a lifecycle, such as `viewModelScope`, `lifecycleScope` or a scope owned by a service. Confidence: 0.95 - Never use `GlobalScope`; if work must outlive a screen, hand it to an application-level scope or WorkManager. Confidence: 0.95 - Make suspend funct

Result

Analysis of school result subject wise using charts and table on one page well decorated