anywhere

wield.pytest.anywhere

pytest modules for use with wield packages and dependent software

This is a pytest, but its test folder is missing. Some of the annotations of the tests may be missing. pytest-html report

Functions

fjoin(*path[, test_only])

py.test fixture that runs os.path.join(path, *arguments) to merge subpaths with the folder path of the current test being run. Useful for referring to data files.

tjoin(*subpath[, test_only])

function that joins subpaths to the value of the special test-specific folder for test run data and plots.

Details

fjoin(*path, test_only=True)[source][github]

py.test fixture that runs os.path.join(path, *arguments) to merge subpaths with the folder path of the current test being run. Useful for referring to data files.

tjoin(*subpath, test_only=True)[source][github]

function that joins subpaths to the value of the special test-specific folder for test run data and plots. Usually created at the pytest.ini root folder and linked to the <folder of the test>/tresults/test_name/.

This function should be use like test_thing.save(tjoin(‘output_file.png’))