FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fixtures: inline some functions to streamline the code by bluetech · Pull Request #12130 · pytest-dev/pytest · GitHub

fixtures: inline some functions to streamline the code - #12130

Merged
nicoddemus merged 6 commits into
pytest-dev:mainfrom
bluetech:fixtures-inline
Apr 27, 2024
Merged

fixtures: inline some functions to streamline the code#12130
nicoddemus merged 6 commits into
pytest-dev:mainfrom
bluetech:fixtures-inline

Conversation

Copy link
Copy Markdown
Member

The getfixturevalue code is split over several functions, but I find it mostly obscures the flow of the logic. This PR inlines _getnextfixturedef and _compute_fixture_value into _get_active_fixturedef which is now a single linear function, mostly. I did move some sanity checking code out of the function since it mostly distracts.

nicoddemus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM!

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL