Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f05758d
commit 26c8587
Showing
2 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
# | ||
# test_doctests.py - test runner for COT doctests | ||
# | ||
# July 2016, Glenn F. Matthews | ||
# Copyright (c) 2016 the COT project developers. | ||
# See the COPYRIGHT.txt file at the top-level directory of this distribution | ||
# and at https://github.com/glennmatthews/cot/blob/master/COPYRIGHT.txt. | ||
# | ||
# This file is part of the Common OVF Tool (COT) project. | ||
# It is subject to the license terms in the LICENSE.txt file found in the | ||
# top-level directory of this distribution and at | ||
# https://github.com/glennmatthews/cot/blob/master/LICENSE.txt. No part | ||
# of COT, including this file, may be copied, modified, propagated, or | ||
# distributed except according to the terms contained in the LICENSE.txt file. | ||
|
||
"""Test runner for COT doctest tests.""" | ||
|
||
from doctest import DocTestSuite | ||
from unittest import TestSuite | ||
|
||
|
||
def load_tests(*_): | ||
"""Load doctests as unittest test suite.""" | ||
suite = TestSuite() | ||
suite.addTests(DocTestSuite('COT.cli')) | ||
suite.addTests(DocTestSuite('COT.edit_hardware')) | ||
suite.addTests(DocTestSuite('COT.ovf.ovf')) | ||
return suite |