Add initial Django project
This commit is contained in:
parent
94aae4653c
commit
fa6af127c1
15 changed files with 1103 additions and 4 deletions
15
conftest.py
Normal file
15
conftest.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from typing import TYPE_CHECKING
|
||||
from typing import Any
|
||||
|
||||
import pytest
|
||||
import zeal # pyright: ignore[reportMissingTypeStubs]
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from collections.abc import Generator
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def use_zeal() -> Generator[None, Any]:
|
||||
"""Enable Zeal N+1 detection context for each pytest test."""
|
||||
with zeal.zeal_context():
|
||||
yield
|
||||
Loading…
Add table
Add a link
Reference in a new issue