pytest-dev / pytest-dev/pytest

Add example of resources + parametrize fixtures

Open
#8,208 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

topic: fixtures type: docs
Dominant language
Python
Stars
14.5k
Forks
3.4k
Avg merge
2d 9h
Merged PRs (30d)
35

Description

i took a short look at the docs, and i have not found a example of a parameterize + resource managing plugin, i wonder if we should add a example of a small plugin that initializes a resource with pytest configure/unconfigure and manages parameterize/fixtures on a object

Originally posted by @RonnyPfannschmidt in https://github.com/pytest-dev/pytest/discussions/8200#discussioncomment-250735

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the pytest documentation for existing plugin, resource, parameterization, and fixture examples, then identify the appropriate documentation entry point. Add a small example showing a plugin using pytest configure/unconfigure to initialize a resource and manage parameterization and fixtures on an object; done means the example is clear and runnable.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
documentation, testing
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.