mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
20 lines
498 B
Python
20 lines
498 B
Python
import subprocess
|
|
import os
|
|
|
|
from django.test import TestCase
|
|
from django.conf import settings
|
|
|
|
|
|
class SphinxTests(TestCase):
|
|
docs_dir = os.path.join(settings.BASE_DIR, 'docs')
|
|
|
|
def test_multiprocessing(self):
|
|
output = subprocess.check_output([
|
|
'sphinx-build',
|
|
'-b',
|
|
'html',
|
|
'-j 2',
|
|
'.',
|
|
'_build/html',
|
|
], cwd=self.docs_dir, stderr=subprocess.STDOUT)
|
|
self.assertIn(b'build succeeded.', output)
|