Commit 52aaf3c
refactor(python): move marker/fixture/request setup from Function.__init__ to from_parent
Function.__init__ now only stores _obj, _instance, originalname, and
callspec. The marker extension, keyword updates, fixture resolution
(getfixtureinfo), and _initrequest() are extracted into a new
_setup_markers_and_fixtures method called from from_parent after
construction.
This keeps __init__ focused on storing values while from_parent
handles all post-construction initialization logic.
Co-authored-by: Cursor AI <ai@cursor.sh>
Co-authored-by: Anthropic Claude <claude@anthropic.com>1 parent 0d507c4 commit 52aaf3c
1 file changed
Lines changed: 21 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1599 | 1599 | | |
1600 | 1600 | | |
1601 | 1601 | | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | 1602 | | |
1607 | 1603 | | |
1608 | | - | |
1609 | 1604 | | |
1610 | | - | |
1611 | | - | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
| 1611 | + | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
1612 | 1618 | | |
1613 | 1619 | | |
1614 | 1620 | | |
| |||
1624 | 1630 | | |
1625 | 1631 | | |
1626 | 1632 | | |
1627 | | - | |
1628 | 1633 | | |
1629 | 1634 | | |
1630 | 1635 | | |
1631 | | - | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
1632 | 1644 | | |
1633 | 1645 | | |
1634 | 1646 | | |
| |||
0 commit comments