Merge pull request #10853 from stefmolin/patch-1
Update fixture scope in package/directory fixture example.
This commit is contained in:
commit
1a17539065
|
@ -691,7 +691,7 @@ Here is an example for making a ``db`` fixture available in a directory:
|
|||
pass
|
||||
|
||||
|
||||
@pytest.fixture(scope="session")
|
||||
@pytest.fixture(scope="package")
|
||||
def db():
|
||||
return DB()
|
||||
|
||||
|
|
Loading…
Reference in New Issue