summaryrefslogtreecommitdiff
path: root/src/tools/docwriter/tests/test_integration.py
diff options
context:
space:
mode:
authorNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2018-08-04 17:22:37 +0530
committerNikhil Ramakrishnan <ramakrishnan.nikhil@gmail.com>2018-08-04 17:22:37 +0530
commitb580cbb9db33babafd7e0b0349a30f590bf8ac69 (patch)
tree806d1455c0f9784f2302b05c3f7dd8fdd99de82e /src/tools/docwriter/tests/test_integration.py
parentb83cf04d4a60c5a107970c0bbf339923613df071 (diff)
downloadfreetype2-GSoC-2018-nikhil.tar.gz
Remove `docwriter' source (now a pip package).GSoC-2018-nikhil
`docwriter' can now be found at https://github.com/freetype/docwriter The PyPI project is published at https://pypi.org/project/docwriter/ Development will continue on the GitHub repository. * src/tools/docwriter: Remove this folder and its contents from the repository.
Diffstat (limited to 'src/tools/docwriter/tests/test_integration.py')
-rw-r--r--src/tools/docwriter/tests/test_integration.py55
1 files changed, 0 insertions, 55 deletions
diff --git a/src/tools/docwriter/tests/test_integration.py b/src/tools/docwriter/tests/test_integration.py
deleted file mode 100644
index db5c91d9d..000000000
--- a/src/tools/docwriter/tests/test_integration.py
+++ /dev/null
@@ -1,55 +0,0 @@
-#
-# test_integration.py
-#
-# Integration test for docwriter.
-#
-# Copyright 2018 by
-# Nikhil Ramakrishnan.
-#
-# This file is part of the FreeType project, and may only be used,
-# modified, and distributed under the terms of the FreeType project
-# license, LICENSE.TXT. By continuing to use, modify, or distribute
-# this file you indicate that you have read the license and
-# understand and accept it fully.
-
-"""Docwriter Integration tests.
-
-This is a simple integration test that builds Docwriter
-documentation against a test file.
-
-From the root of the Docwriter git repo, use:
- python -m pytest tests/test_integration.py
-"""
-
-import logging
-import subprocess
-
-log = logging.getLogger('docwriter')
-
-def test_integration( capfd ):
-
- log.propagate = False
- stream = logging.StreamHandler()
- formatter = logging.Formatter(
- "\033[1m\033[1;32m *** %(message)s *** \033[0m")
- stream.setFormatter(formatter)
- log.addHandler(stream)
- log.setLevel(logging.DEBUG)
-
- base_cmd = ['python', 'docwriter.py', '--prefix=test',
- '--title=Docwriter Test', '--output=./tests/output',
- '--verbose' ]
- folders = ['./tests/assets/*.c']
-
- log.debug("Building markdown docs.")
- command = base_cmd + folders
- # run the command
- subprocess.check_call( command )
- # capture output to check for warnings
- captured = capfd.readouterr()
- # print the logs on failure
- print( captured.err )
- # fail if there are warnings
- assert not "WARNING" in captured.err
-
-# eof