mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
add test to make sure documentation can build
This commit is contained in:
parent
49726c4a31
commit
ec38d06856
23
setup.py
23
setup.py
@ -27,18 +27,6 @@ def check_setuptools_features():
|
||||
|
||||
check_setuptools_features()
|
||||
|
||||
|
||||
tests_require = [
|
||||
'coverage',
|
||||
'pep8',
|
||||
'flake8',
|
||||
'pylint',
|
||||
'pytest',
|
||||
'pytest-cov>=2.2.1',
|
||||
'pytest-xdist',
|
||||
'pytest-flask',
|
||||
]
|
||||
|
||||
dev_require = [
|
||||
'ipdb',
|
||||
'ipython',
|
||||
@ -52,6 +40,17 @@ docs_require = [
|
||||
'sphinxcontrib-napoleon>=0.4.4',
|
||||
]
|
||||
|
||||
tests_require = [
|
||||
'coverage',
|
||||
'pep8',
|
||||
'flake8',
|
||||
'pylint',
|
||||
'pytest',
|
||||
'pytest-cov>=2.2.1',
|
||||
'pytest-xdist',
|
||||
'pytest-flask',
|
||||
] + docs_require
|
||||
|
||||
benchmarks_require = [
|
||||
'line-profiler==1.0',
|
||||
]
|
||||
|
16
tests/test_docs.py
Normal file
16
tests/test_docs.py
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
import subprocess
|
||||
|
||||
|
||||
def test_build_server_docs():
|
||||
proc = subprocess.Popen(['bash'], stdin=subprocess.PIPE)
|
||||
proc.stdin.write('cd docs/server; make html'.encode())
|
||||
proc.stdin.close()
|
||||
assert proc.wait() == 0
|
||||
|
||||
|
||||
def test_build_root_docs():
|
||||
proc = subprocess.Popen(['bash'], stdin=subprocess.PIPE)
|
||||
proc.stdin.write('cd docs/root; make html'.encode())
|
||||
proc.stdin.close()
|
||||
assert proc.wait() == 0
|
Loading…
x
Reference in New Issue
Block a user