From c044d276b38e565a96d7b3d035046ad3ab4f4bfe Mon Sep 17 00:00:00 2001 From: Simon Conseil Date: Fri, 8 Jan 2016 00:11:17 +0100 Subject: [PATCH] Show Pillow version in the tests header --- tests/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/conftest.py b/tests/conftest.py index 85c7b32..052eb6d 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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)