Source code for openpyxl.formatting.tests.conftest

from __future__ import absolute_import
# Copyright (c) 2010-2017 openpyxl
import pytest


@pytest.fixture
[docs]def datadir(): """DATADIR as a LocalPath""" import os here = os.path.split(__file__)[0] DATADIR = os.path.join(here, "data") from py._path.local import LocalPath return LocalPath(DATADIR)
# objects under test @pytest.fixture
[docs]def FormatRule(): """Formatting rule class""" from openpyxl.formatting.rules import FormatRule return FormatRule