pytest-dev / pytest-dev/pytest-factoryboy
Scope
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 400
- Forks
- 44
- Avg merge
- 6h 34m
- Merged PRs (30d)
- 1
Description
There appears to be no way to define the scope of the resulting fixtures. Not sure if this is unsupported or undocumented, but it is a needed feature. Creating a new fixture scoped for "module" or "session" is not workable as the scope change results in an exception. Currently, all registered Factories are 'function' scoped.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the exception caused when a registered Factory uses module or session scope, then trace how resulting fixtures and registered Factories receive their scope in the pytest runner integration. Done means module- and session-scoped fixtures can be created without an exception, with the supported behavior documented or covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100