File: conftest.py

package info (click to toggle)
python-django-zeal 2.0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 284 kB
  • sloc: python: 1,387; makefile: 25; sh: 9
file content (11 lines) | stat: -rw-r--r-- 225 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
import pytest
from zeal import zeal_context


@pytest.fixture(scope="function", autouse=True)
def use_zeal(request):
    if "nozeal" in request.keywords:
        yield
    else:
        with zeal_context():
            yield