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 21, 2023
1 parent 4ccdef2 commit 8d5adeb
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 @@ -150,7 +150,7 @@ class FixtureRequest(abc.ABC):
...
```
在上面的`FixtureRequest.getfixturevalue()`函数中有一个逻辑是返回`fixturedef.cached_result`,实际这个执行逻辑在:
```
```python
def pytest_fixture_setup(
fixturedef: FixtureDef[FixtureValue], request: SubRequest
) -> FixtureValue:
Expand Down

0 comments on commit 8d5adeb

Please sign in to comment.