lingpy.tests package¶
Subpackages¶
- lingpy.tests.algorithm package
- lingpy.tests.align package
- lingpy.tests.basic package
- lingpy.tests.compare package
- lingpy.tests.convert package
- lingpy.tests.data package
- lingpy.tests.evaluate package
- lingpy.tests.meaning package
- lingpy.tests.read package
- lingpy.tests.sequence package
- lingpy.tests.thirdparty package
Submodules¶
lingpy.tests.test_cache module¶
lingpy.tests.test_cli module¶
-
class
lingpy.tests.test_cli.Tests(methodName='runTest')¶ Bases:
lingpy.tests.util.WithTempDir-
run_cli(*args)¶
-
test_alignments()¶
-
test_lexstat()¶
-
test_multiple()¶
-
test_pairwise()¶
-
test_settings()¶
-
test_wordlist()¶
-
-
lingpy.tests.test_cli.capture(*args)¶
lingpy.tests.test_config module¶
lingpy.tests.test_log module¶
lingpy.tests.test_util module¶
-
class
lingpy.tests.test_util.Test(methodName='runTest')¶ Bases:
lingpy.tests.util.WithTempDir-
test_TextFile()¶
-
test_write_text_file()¶
-
-
class
lingpy.tests.test_util.TestCombinations(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_combinations2()¶
-
-
class
lingpy.tests.test_util.TestJoin(methodName='runTest')¶ Bases:
unittest.case.TestCase-
test_dotjoin()¶
-
test_join()¶
-
-
lingpy.tests.test_util.test_as_string()¶
-
lingpy.tests.test_util.test_read_csv_file()¶
lingpy.tests.util module¶
Utilities used in lingpy tests
-
class
lingpy.tests.util.WithTempDir(methodName='runTest')¶ Bases:
unittest.case.TestCase-
setUp()¶
-
tearDown()¶
-
tmp_path(*comps)¶
-
-
lingpy.tests.util.get_log()¶ A mock object for lingpy.log to test whether log messages have been emitted.
Returns: Mock instance.
-
lingpy.tests.util.test_data(*comps)¶ Access test data files.
Parameters: comps – Path components of the data file path relative to the test_data dir. Returns: Absolute path to the specified test data file.




