/usr/lib/python3/dist-packages/openpyxl/styles/tests/conftest.py is in python3-openpyxl 2.4.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from __future__ import absolute_import
# Copyright (c) 2010-2017 openpyxl
import pytest
@pytest.fixture
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
def FormatRule():
"""Formatting rule class"""
from openpyxl.formatting.rules import FormatRule
return FormatRule
|