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 1c829ec commit d86b6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2023-07-17-pytest学习.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ 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`对象实例注入其中。
实际需要调用的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 d86b6cb

Please sign in to comment.