write-backend-unit-test
Skill by baserow
Writes or updates Baserow backend tests for core, premium, or enterprise code. It uses pytest, Django, DRF APIClient, and the repo's shared fixture patterns. It is for developers working in the Baserow backend test folders.
Install write-backend-unit-test
Built from the published package, never by AI.
git clone --depth 1 https://github.com/baserow/baserow /tmp/baserow && mkdir -p ~/.claude/skills && cp -r /tmp/baserow/.agents/skills/write-backend-unit-test ~/.claude/skills/write-backend-unit-testRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install write-backend-unit-test in Claude Code
git clone --depth 1 https://github.com/baserow/baserow /tmp/baserow && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/baserow/.agents/skills/write-backend-unit-test ~/.gemini/antigravity-cli/skills/write-backend-unit-testAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install write-backend-unit-test in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides an AI assistant when adding, fixing, or extending backend tests in the Baserow repository. It covers the backend/tests, premium/backend/tests, and enterprise/backend/tests folders. The skill tells the assistant to find the closest existing test in the same area and copy its setup shape, rather than inventing a generic Django style.
The skill describes patterns for handler and service tests, API view tests, signal and side-effect tests, and settings, license, or query-count sensitive tests. It points to shared fixtures such as data_fixture, premium_data_fixture, enterprise_data_fixture, and api_client. It also lists file placement rules and the just command used to run the narrowest relevant test. It is aimed at developers contributing to Baserow's backend.
Written from the project's SKILL.md and checked against it.
What it can do
- Identify the test targetClassifies the work as handler, API, signal, settings, query-count, or premium or enterprise logic before editing.
- Write handler and model testsBuilds state with data_fixture and asserts persisted state, returned values, and raised exceptions.
- Write API view testsUses reverse, api_client, and JWT authorization headers, then asserts status codes and key response fields.
- Test signals and side effectsPatches the exact function or signal send call and asserts it was called with the expected objects or IDs.
- Handle settings and query countsUses override_settings and django_assert_num_queries only when settings or query count are part of the contract.
- Place tests in the right treePoints new tests to the existing core, premium, or enterprise test folder near the feature area.
- Run focused validationSuggests narrow just b test commands for the relevant test file.
What you need
- A checkout of the Baserow repository
- The just command runner
- Python with pytest, pytest-django, Django, and Django REST Framework, as used by the repo
Try asking
- Write a pytest test for the new Baserow workspace handler method
- Update the row views API test to cover a missing field error
- Add a premium license test using premium_data_fixture
Good to know
- Written for the Baserow repo layout and its fixture names, not for general Django projects
- Tells the assistant not to use unittest.TestCase or Django TestCase where the repo uses plain pytest
- Premium and enterprise fixtures must be checked in their conftest.py files rather than guessed
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/write-backend-unit-test/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
agents/openai.yaml262 B
Alternatives to write-backend-unit-test
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
write-backend-unit-test: common questions
Does this skill write tests for any Django project?
No. The source says it follows the Baserow repo's existing pytest and fixture conventions and tells the assistant not to invent a generic Django testing style.
Which test folders does it cover?
It covers backend/tests, premium/backend/tests, and enterprise/backend/tests in the Baserow repository.
How does it run the tests it writes?
It recommends running the narrowest relevant test first with the just b test command, using the specific test file path.
How do I install write-backend-unit-test?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is write-backend-unit-test free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is write-backend-unit-test safe to use?
It scores 79 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to write-backend-unit-test?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
