File: conftest.py

package info (click to toggle)
python-django-treebeard 4.8.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 972 kB
  • sloc: python: 4,947; javascript: 269; makefile: 177
file content (15 lines) | stat: -rw-r--r-- 247 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""Pytest configuration file"""

import os

os.environ["DJANGO_SETTINGS_MODULE"] = "tests.settings"

import django


def pytest_report_header(config):
    return "Django: " + django.get_version()


def pytest_configure(config):
    django.setup()