2017-01-03 07:24:00 -06:00
|
|
|
# -*- coding: utf-8 -*-
|
2017-05-07 02:46:44 -05:00
|
|
|
"""
|
|
|
|
pytest config for sphinx/tests
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
2017-01-06 09:46:26 -06:00
|
|
|
|
2017-05-07 02:46:44 -05:00
|
|
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
|
|
|
:license: BSD, see LICENSE for details.
|
|
|
|
"""
|
2017-01-03 07:24:00 -06:00
|
|
|
|
2017-05-07 02:46:44 -05:00
|
|
|
import os
|
2017-01-06 09:46:26 -06:00
|
|
|
|
2017-05-07 02:46:44 -05:00
|
|
|
import pytest
|
|
|
|
from sphinx.testing.path import path
|
2017-01-03 07:24:00 -06:00
|
|
|
|
2017-05-07 02:46:44 -05:00
|
|
|
pytest_plugins = 'sphinx.testing.fixtures'
|
2017-01-03 07:24:00 -06:00
|
|
|
|
|
|
|
|
2017-05-07 02:46:44 -05:00
|
|
|
@pytest.fixture(scope='session')
|
|
|
|
def rootdir():
|
|
|
|
return path(os.path.dirname(__file__) or '.').abspath() / 'roots'
|