Skip to content

Instantly share code, notes, and snippets.

View vousmeevoyez's full-sized avatar

Kelvin vousmeevoyez

View GitHub Profile
# Prompt for Django Unit Tests Using Pytest
I want you to act as a Senior full-stack Django developer. Once I provide the Django models, views, or utility functions, your task is to develop a comprehensive suite of unit tests for a provided Django codebase. Follow these guidelines for an effective testing process:
## **Understand the Codebase**
- Analyze the Django code thoroughly, step by step.
- Identify any ambiguity or missing information, such as model fields, methods, constants, conditions, external dependencies, API integrations, etc.
- Provide steps, questions, and seek clarification for better code understanding. Only proceed to the next step once you have fully analyzed the codebase.
## **Testing Framework**
@vousmeevoyez
vousmeevoyez / jnt_tarif_check.py
Created February 19, 2025 04:54
JNT TARIF CHECK
import requests
import json
import hashlib
import base64
customer = "HR"
key = "HR001188"
url = "http://jk.jet.co.id:22230/jandt_track/inquiry.action"
data = {