pytest might escape virtualenv in invoke
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
Research direction
Start in the Invoke task that calls pytest and inspect how the command is assembled when a virtualenv is not activated. Verify the task invokes pytest through the active Python interpreter, then run the available project tests to confirm the virtualenv is respected.
Written by the indexing model from the issue text.
Description
@rgaudin said:
Found an issue: by calling pytest directly in invoke, it might escape a virtualenv if it's not activated (env/bin/inv coverage).
Can be fixed with:
pyexe = shlex.quote(sys.executable)
ctx.run(f"{pyexe} -m pytest {args}", pty=use_pty)
- Dominant language
- Python
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
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.
More from openzim/_python-bootstrap
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 76/100
openzim/_python-bootstrap#57 ·
-
enhancement
openzim/_python-bootstrap#54 · 1 comment · 2 assignees ·
-
Workflow convention Openquestion
openzim/_python-bootstrap#53 · 1 assignee ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 25/100
openzim/_python-bootstrap#51 · 3 comments ·
-
enhancement
openzim/_python-bootstrap#48 · 2 assignees ·
All issues in openzim/_python-bootstrap
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
syfoud/Simulated_Scepter#172 ·
-
A cancelled tests run makes the coverage comment workflow fail and reports it as a red check on main Openarea: ci bug perceived difficulty: 3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Nitjsefnie-Harness-Commons/daedalus#921 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
EleutherAI/lm-evaluation-harness#4207 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ClickHouse/clickhouse-connect#1057 ·