pytest-dev / pytest-dev/pytest-django
Option to exclude templates for `FAIL_INVALID_TEMPLATE_VARS`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.5k
- Forks
- 367
- PR merge metrics
- No merged PRs in 30d
Description
I would like the FAIL_INVALID_TEMPLATE_VARS option to not fail tests for specified app templates. For example, if the issue is in a third party app template (inherited or otherwise) that is excluded, the tests should not fail. An option to exclude specified templates and template directories might help.
Contributor guide
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
The issue names no files, tests, or entry points. Start by locating the implementation of FAIL_INVALID_TEMPLATE_VARS and its existing tests, then define how exclusions should apply to inherited templates and template directories. Done means excluded templates no longer fail validation while non-excluded templates still do.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- backend, testing
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100