mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
This is the recommended way to do pre-session configuration in pytest if not using session fixtures [1]. With this, we're able to remove the custom 'test/run.py' script in its entirety and run 'pytest' like everyone else does. We'll do this separately to keep things simple. [1] https://stackoverflow.com/a/12600154/613428 Signed-off-by: Stephen Finucane <stephen@that.guru>
17 lines
337 B
Python
Executable File
17 lines
337 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
Sphinx unit test driver
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
This script runs the Sphinx unit test suite.
|
|
|
|
:copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
|
|
:license: BSD, see LICENSE for details.
|
|
"""
|
|
import sys
|
|
|
|
import pytest
|
|
|
|
sys.exit(pytest.main(sys.argv[1:]))
|