Show Pillow version in the tests header

This commit is contained in:
Simon Conseil
2016-01-08 00:11:17 +01:00
parent 485b258692
commit c044d276b3

View File

@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import os
import PIL
import pytest
from sigal.settings import read_settings
@@ -12,3 +13,7 @@ CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def settings():
"""Read the sample config file."""
return read_settings(os.path.join(CURRENT_DIR, 'sample', 'sigal.conf.py'))
def pytest_report_header(config):
return "project deps: Pillow-{}".format(PIL.PILLOW_VERSION)