In Python you can call pygimli.test(show=True) to run all docstring examples.
||Join two or more pathname components, inserting ‘/’ as needed.|
||Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.|
||Run docstring examples and additional tests.|
Join two or more pathname components, inserting ‘/’ as needed. If any component is an absolute path, all previous path components will be discarded. An empty last part will result in a path that ends with a separator.
Return the canonical path of the specified filename, eliminating any symbolic links encountered in the path.
test(target=None, show=False, onlydoctests=False, coverage=False, htmlreport=False, abort=False, verbose=True)¶
Run docstring examples and additional tests.
>>> import pygimli as pg >>> # You can test everything with pg.test() or test a single function: >>> pg.test("pg.utils.boxprint", verbose=False) >>> # The target argument can also be the function directly >>> from pygimli.utils import boxprint >>> pg.test(boxprint, verbose=False)