Is there a way to test a later code example that relies on an earlier one?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- python
- Domain
- documentation, testing-qa
Research direction
Start by reading the plugin's markdown example extraction and execution flow, then check how independently tested snippets are represented. Define how a later snippet can declare dependence on an earlier one, and add coverage showing that the earlier code is included when the later example is tested.
Written by the indexing model from the issue text.
Description
This is an awesome library - thanks for creating and maintaining it!
If I have a markdown doc that has 2 code snippets, is there any way to mark that the second one relies on the first one and therefore, in order to test the second example you need to take the code from the first example too?
E.g. test.md
You can import environment variables like this:
import os
s.environ.get("MY_ENV_VAR")
And you can also specify a default value:
s.environ.get("MY_ENV_VAR", "default")
- Dominant language
- Python
- Stars
- 181
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from pydantic/pytest-examples
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
pydantic/pytest-examples#87 ·
-
Clean up NeededPossibly taken @Danipulok claimed this 73 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
pydantic/pytest-examples#72 · 5 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 65/100
pydantic/pytest-examples#82 ·
-
Feature requrest [I can do it myself if allowed]: Allow configuration of `pytest-examples` from `pyproject.toml`Possibly taken @Danipulok claimed this 38 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 64/100
pydantic/pytest-examples#73 · 4 comments ·
-
target_versions are out of datePossibly taken @stevenh claimed this 507 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
pydantic/pytest-examples#63 · 1 comment ·
All issues in pydantic/pytest-examples
Similar issues
-
Email validation accepts a trailing newlinePossibly taken @marcello-pichini claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
dbt-labs/spark-utils#51 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
vendrabuck/HERD#1419 ·
Maintainers usually reply within 1 day