contentstack/contentstack-python · Archived

testing

Use for pytest setup, test layout, config.py credentials, and hygiene in contentstack-python.

First seen Jul 16, 2026

Installation

$ npx skills add contentstack/contentstack-python --skill testing

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from contentstack/contentstack-python.

npx skills add contentstack/contentstack-python

Browse all from contentstack/contentstack-python

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 4
License LICENSE
Default branch master
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,538 B
  • docs SUMMARY.md 108 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 2 installs

SKILL.md

Testing – Contentstack Python CDA SDK

When to use

  • Adding or changing tests under tests/.
  • Debugging test failures or understanding how credentials are loaded.
  • Improving test coverage for a new feature.

Instructions

Commands

Goal Command
Full test tree pytest tests/
Single file pytest tests/test_stack.py
With coverage pytest --cov=contentstack tests/

Environment

  • Root config.py: HOST, APIKEY, DELIVERYTOKEN, ENVIRONMENT, optional PREVIEW_TOKEN, content UIDs for specific suites.
  • Use a local config.py or sanitized values; never commit live secrets.

Conventions

  • Tests subclass unittest.TestCase; tests/pytest.ini applies warning filters.

Scope by module

Area Test files
Stack / region tests/test_stack.py
Queries tests/testquery.py, tests/testbasequery.py
Entries / assets tests/testentry.py, tests/testassets.py
Taxonomy / global fields / live preview tests/testtaxonomies.py, tests/testglobalfields.py, tests/testlive_preview.py
Early access tests/testearlyfind.py, tests/testearlyfetch.py

Hygiene

  • No committed pytest.mark.skip without reason; avoid @unittest.skip unless environment is genuinely unavailable in CI.
  • Do not commit real API keys, delivery tokens, or preview tokens.