MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_relative_path

Method test_relative_path

tests/data/utils/test_file_basename.py:80–83  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78 self.assertEqual(result, expected)
79
80 def test_relative_path(self):
81 output = create_file_basename("", "test.txt", "output", "", makedirs=False)
82 expected = os.path.join("output", "test", "test")
83 self.assertEqual(output, expected)
84
85
86if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

create_file_basenameFunction · 0.90

Tested by

no test coverage detected