Skip to content

Commit

Permalink
Update 2023-07-17-pytest学习.md
Browse files Browse the repository at this point in the history
  • Loading branch information
shihai1991 committed Aug 22, 2023
1 parent 5df0f23 commit 3d52b49
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion _posts/2023-07-17-pytest学习.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ class Function(PyobjMixin, nodes.Item):

## [XXRequest](https://github.com/pytest-dev/pytest/blob/37bb1861757685acca09455d63aa148a65317989/src/_pytest/fixtures.py#L664)
而实际推测需要调用的Fixture相关信息(涉及到的`FixtureDef`都在`Function._fixtureinfo`中)其实也在`Function`对象实例中,并在构造`TopReuqest`对象实例时将`Function`对象实例注入其中。

```python
class TopRequest(FixtureRequest):
"""The type of the ``request`` fixture in a test function."""
Expand Down

0 comments on commit 3d52b49

Please sign in to comment.