databrickslabs / databrickslabs/pytester

[FEATURE] Let fixture `is_in_debug` differentiate between "running from editor" and "running in debug mode (from editor)"

Open
#89 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
139
Forks
16
PR merge metrics
No merged PRs in 30d

Description

Description

Let fixture is_in_debug differentiate between "running from editor" and "running in debug mode (from editor)"

Current behavior

is_in_debug means "running from editor"

Expected behavior

is_in_debug means "running in debug mode (from editor)"

Solution

Add is_in_editor fixture that means "running from editor" and update is_in_debug to mean "running in debug mode (from editor)"

Considerations

This will update the behavior of tests that use is_in_debug. Though, in both cases this will not evaluate to False when not run from the editor

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

Start by locating the is_in_debug fixture and the tests that use it. Add the is_in_editor fixture for editor execution, update is_in_debug to require debug mode from the editor, and review affected tests to confirm both fixtures remain true when not running from the editor.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.