lingpy.tests package

Subpackages

Submodules

lingpy.tests.test_cache module

class lingpy.tests.test_cache.TestCache(methodName='runTest')

Bases: unittest.case.TestCase

test_cache()

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

class lingpy.tests.test_config.ConfigTest(methodName='runTest')

Bases: lingpy.tests.util.WithTempDir

setUp()
test_default()
test_existing_config()
test_new_config()

lingpy.tests.test_log module

class lingpy.tests.test_log.LogTest(methodName='runTest')

Bases: lingpy.tests.util.WithTempDir

tearDown()
test_convenience()
test_default_config()
test_new_config()

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.

Module contents