File: conftest.py

package info (click to toggle)
beanbag-docutils 2.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 472 kB
  • sloc: python: 2,671; makefile: 202; sh: 8
file content (27 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"""Configures pytest for beanbag-docutils.

Version Added:
    2.1
"""

import django
import sphinx


def pytest_report_header(config):
    """Return information for the report header.

    This will log the version of Sphinx.

    Args:
        config (object):
            The pytest configuration object.

    Returns:
        list of str:
        The report header entries to log.
    """
    return [
        'Sphinx: %s' % sphinx.__version__,
        'Django: %s' % django.get_version(),
    ]