from nbdev import show_dochelper.tests
Helper functions for testing
_test_directory
_test_directory ()
*Returns the nbs/_tests directory of the trouver repository.
Assumes that the current working directory is either the root of the repository or the nbs folder and the nbs/_tests folder exists in the repository but the root of the repository does not have a folder named _tests.*
Test files for trouver are contained in nbs/_tests directory within the repository. The hidden _test_directory() method returns this directory.
assert os.path.exists(_test_directory())os.listdir(_test_directory())['empty_model_vault',
'latex_examples',
'ml_examples',
'test_vault_1',
'test_vault_10',
'test_vault_2',
'test_vault_3',
'test_vault_4',
'test_vault_5',
'test_vault_6',
'test_vault_7',
'test_vault_8',
'test_vault_9']