saleor-testing

saleor-testing is a skill for Claude Code from OrcaQubits/agentic-commerce-skills-plugins. It costs 42 tokens per session (1,983 once invoked), scanned A, original, MIT.

A testing guide for Saleor, an open-source commerce platform. It covers pytest, Django’s test tools, GraphQL requests, app tests, reusable test data, and webhook checks.

In plain words
What is it for?
Use it to write unit tests, API and integration tests, full-flow tests, and tests for apps and webhooks in Saleor projects.
Why use it?
It removes the need to work out how Saleor’s testing setup fits together. It helps avoid tests that do not match Saleor’s database, API, app, or webhook behaviour.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the saleor-commerce plugin — 21 skills, 1 agent shipped together

Good fit Use it to write unit tests, API and integration tests, full-flow tests, and tests for apps and webhooks in Saleor projects.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add OrcaQubits/agentic-commerce-skills-plugins --skill saleor-testing
Clone the repo
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins

Made for: Claude Code.

Or install saleor-commerce, the plugin that ships this one along with the rest of its 21 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for saleor-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing/github.svg)](https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing)
Your own site
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for saleor-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing"><img src="https://agentmods.dev/badge/skills/orcaqubits/agentic-commerce-skills-plugins/saleor-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01983
Opus 5 $0.00021 $0.00992
Sonnet 5 $0.00008 $0.00397
Haiku 4.5 $0.00004 $0.00198

Measured 2d ago against content hash 2711527d3eb5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-16, from the pricing page.

Security

Grade A, and why

saleor-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

saleor-commerce/skills/saleor-testing/SKILL.md · 197 lines

How it starts

The opening of the file, as written. The whole thing — 197 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Saleor Testing

Before writing code

Fetch live docs:

  1. Web-search site:github.com/saleor/saleor pytest conftest fixtures for Saleor's test setup and existing fixtures
  2. Web-search site:docs.saleor.io app testing webhooks for App testing patterns and webhook verification
  3. Web-search site:docs.saleor.io graphql API testing for GraphQL query and mutation testing approaches
  4. Fetch https://github.com/saleor/saleor/blob/main/conftest.py and review root-level test configuration
  5. Web-search site:docs.pytest.org fixtures factory_boy django for pytest fixtures and factory_boy integration

Test Architecture

Saleor follows a layered testing approach:

Layer Tool Purpose
Unit tests pytest Test individual functions, utilities, and model methods
Integration tests Django test client Test GraphQL API endpoints with database
App tests pytest + httpx/requests-mock Test App webhooks, signature verification
E2E tests pytest + API client Test full user flows through the API

Pytest Setup

Core Configuration

File Purpose
pytest.ini / pyproject.toml Pytest settings, markers, default flags
conftest.py (root) Shared fixtures, database setup, API clients
conftest.py (per-app) App-specific fixtures and helpers

Essential pytest Settings

Setting Value Purpose
DJANGO_SETTINGS_MODULE saleor.tests.settings Test-specific Django settings
--reuse-db Flag Reuse test database across runs for speed
--no-migrations Flag Skip migrations; create tables directly
-x Flag Stop on first failure during development
-n auto Flag Parallel execution with pytest-xdist

Key pytest Plugins

Plugin Purpose
pytest-django Django integration, database access, settings override
pytest-xdist Parallel test execution
pytest-mock Mock and patch utilities
pytest-asyncio Async test support
pytest-vcr Record and replay HTTP interactions
pytest-factoryboy factory_boy integration with pytest fixtures

Read the full file on GitHub · 197 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 197 lines · 42 tokens per session scan A 2711527d3eb5

Subscribe to this mod's changes

saleor-testing is a skill published in the GitHub repository OrcaQubits/agentic-commerce-skills-plugins (39 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,983 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.