2014-03-29 22:56:47 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
|
|
import os
|
2016-01-08 00:11:17 +01:00
|
|
|
import PIL
|
2014-03-29 22:56:47 +01:00
|
|
|
import pytest
|
|
|
|
|
|
|
|
|
|
from sigal.settings import read_settings
|
|
|
|
|
|
|
|
|
|
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
|
|
|
|
|
|
|
|
|
|
|
2015-04-20 00:05:07 +02:00
|
|
|
@pytest.fixture
|
2014-03-29 22:56:47 +01:00
|
|
|
def settings():
|
|
|
|
|
"""Read the sample config file."""
|
|
|
|
|
return read_settings(os.path.join(CURRENT_DIR, 'sample', 'sigal.conf.py'))
|
2016-01-08 00:11:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def pytest_report_header(config):
|
|
|
|
|
return "project deps: Pillow-{}".format(PIL.PILLOW_VERSION)
|