More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIMuseMuseDotsDots+21 more

    Production Testing for Django and React

    1

    Pytest + DRF and Jest + React Testing Library playbook with a mandatory run, report, rerun verification loop.

    Free

    2 usesSecurity scanned
    Production Testing for Django and React

    Production Testing for Django and React

    Example session with this skill installed

    Write tests for the new POST /api/orders/ endpoint and tell me whether they actually pass.

    • Read your context and instructions
    • Compiled the production testing

    Summary

    Added 5 API tests for POST /api/orders/, ran them, and proved the new ones can fail. Example output; paths and counts are illustrative.

    What was tested

    TestChecksMocked
    creates order201, response body, row saved in the real DBpayment gateway only
    rejects empty cart400 with a field error, no row creatednothing
    requires auth401 without a tokennothing
    retries safelysame idempotency key twice gives one rownothing
    gateway timeout502 and the order stays pendingpayment gateway raises

    Core of one test

    def test_creates_order(api_client, user, cart):
        with mock.patch("orders.payments.charge") as charge:
            resp = api_client.post("/api/orders/", {"cart_id": cart.id}, format="json")
        assert resp.status_code == 201
        assert Order.objects.filter(id=resp.json()["id"]).exists()
        charge.assert_called_once()
    

    Verification loop

    1. Ran pytest orders/tests/test_api.py -q: 5 passed.
    2. Broke the status assertion on purpose: 1 failed, as expected.
    3. Restored it and reran: 5 passed.

    Next steps

    1. Add a query-count assertion to catch N+1 on the order list.
    2. Add the same endpoint to the contract tests used by the mobile app.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Tests your agent actually runs, and proves can fail

    Most AI-written tests look right and never get run. This skill makes your agent write tests the way a strong team does, then run them, read the result, and prove each new test can go red before trusting it.

    How it helps

    • Honest backend tests. Real-database unit, integration and API tests with pytest and DRF. Mock only at the boundary: network, task dispatch, external services, clock.
    • Solid frontend tests. Jest and React Testing Library with provider-wrapped renders and restorable config mocks.
    • Stable E2E suites. Layered page objects, and a way to quarantine flaky tests without hiding them.
    • Contract and performance checks. Know when an additive change is safe and when it breaks a consumer.
    • A verification loop. Identify the test, run the real command, evaluate, fix the root cause, rerun. No success reported from reading code.

    What's inside

    A short SKILL.md with the philosophy and the loop, plus 4 reference guides: backend testing, frontend testing, E2E and integration and contract testing, and the verification loop with a bug report template.

    Use it when

    Writing or reviewing tests, adding coverage to a feature, debugging a flaky suite, deciding what to mock, or when someone asks whether something actually works.

    Optimized for Django (DRF) and React. Does not cover mobile-native frameworks or hardware-in-the-loop testing. Requires an environment where local DB access is available for unit tests.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before any payment.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    2 uses

    Times used to date

    Free forever

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    • Free with an Agensi account

    Requires

    jest
    Node.js

    Permissions

    Browser
    Network Access
    Environment Variables
    Read Files
    Write Files
    Listed1 month ago

    What's inside

    Frequently Asked Questions

    Unlike generic prompts that often suggest brittle mocks, this skill enforces real database interactions for Django and a mandatory 'fail-first' loop to ensure your tests actually catch bugs instead of providing a false sense of security.

    The skill is optimized for Python (Django/DRF) and JavaScript (React/Redux) environments, specifically utilizing pytest, Factory Boy, Jest, and React Testing Library.

    Yes, the skill includes a dedicated E2E quarantine system and layered page object models designed to isolate, identify, and resolve flakiness in complex browser-based test suites.

    Upon purchase, you receive the full agent skill configuration, including the disciplined verification logic, specialized testing templates for Django/React, and the integrated bug reporting workflow.

    This skill is designed to work with any AI agent that supports custom skill integration and has access to your local or CI environment's execution shell.

    Updates are periodically released to ensure compatibility with the latest versions of Django and React Testing Library; buyers will receive notifications of these improvements via their marketplace dashboard.

    New in Testing & Debugging