module documentation

Tests the cocopp module.

On a shell:

python -m cocopp.test doctest

runs the doctests (which is quick) and:

python -m cocopp.test all

runs also the most extensive tests.

Class InfolderGoneWithTheWind with InfolderGoneWithTheWind(): ... executes the block in a
Function copy_latex_templates Undocumented
Function data_archive_get Undocumented
Function delete_files Undocumented
Function depreciated_data_archive_get CAVEAT: this won't work anymore as the get_first method changed to get_one
Function depreciated_prepare_data Undocumented
Function do_doctest Undocumented
Function do_pickle_regression_test read in a pickled data set and compare to data read from the original data.
Function join_path Undocumented
Function main these tests are executed when python cocopp is called.
Function process_doctest_output Undocumented
Function retrieve_algorithm depreciated (replaced by cocopp._data_archive COCODataArchive instance replaced by cocopp.archiving.get or cocopp.archiving.official_archives or cocopp.archives.all)
Function run_latex_template Undocumented
Function tmp_test_constrained Undocumented
Variable test_bibtex Undocumented
def copy_latex_templates():

Undocumented

def data_archive_get(substrs):

Undocumented

def delete_files(all_files=False):

Undocumented

def depreciated_data_archive_get(substrs):

CAVEAT: this won't work anymore as the get_first method changed to get_one

return first matching data paths for each element of substrs concatenated in a string.

Specifically:

return ' ' + ' '.join(cocopp._data_archive.get_first(substrs))

Implemented via subprocess to prevent the need to import cocopp in this file here (prevent the script vs module absolute import issue).

def depreciated_prepare_data(run_all_tests):

Undocumented

def do_doctest():

Undocumented

def do_pickle_regression_test(name='strained/2022/al3-cma'):

read in a pickled data set and compare to data read from the original data.

Assumes that the pickled data already exist at the usually expected place side by side the original data.

def join_path(a, *p):

Undocumented

def main(arguments):

these tests are executed when python cocopp is called.

with wine as second argument C:\Python26\python.exe instead of python is called

def process_doctest_output(stream=None):

Undocumented

def retrieve_algorithm(data_path, folder_name, algorithm_name, file_name=None):

depreciated (replaced by cocopp._data_archive COCODataArchive instance replaced by cocopp.archiving.get or cocopp.archiving.official_archives or cocopp.archives.all)

def run_latex_template(filename, all_tests):

Undocumented

def tmp_test_constrained(python, command):

Undocumented

test_bibtex: bool =

Undocumented