MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / test_missing_directory

Function test_missing_directory

tensorflow/contrib/cmake/python_sanity_test.py:73–83  ·  view source on GitHub ↗
(test, path)

Source from the content-addressed store, hash-verified

71
72
73def test_missing_directory(test, path):
74 if path in test.whitelist:
75 return
76
77 dir_exists = os.path.isdir(abs_path(path))
78 entry_exists = path in test.entries
79
80 if dir_exists and not entry_exists:
81 problem = "'" + test.entries_file + "' is missing '" + path + "'"
82 solution = "Please add the missing entry (comment to whitelist if needed)."
83 raise AssertionError(problem + "\n" + solution)
84
85
86class PythonModuleTest(unittest.TestCase):

Callers 1

testMissingModulesMethod · 0.85

Calls 1

abs_pathFunction · 0.85

Tested by

no test coverage detected