def test_validate_schema_path_with_full_path(self, mock_path): full_path = "/projects/test.json" mock_path.isfile.return_value = True validate_path(None, None, full_path) mock_path.isfile.assert_called_with(full_path)
def test_validate_schema_path_with_full_path(self, mock_path): full_path = '/projects/test.json' mock_path.isfile.return_value = True validate_path(None, None, full_path) mock_path.isfile.assert_called_with(full_path)
def test_validate_schema_path_with_abspath(self, mock_path): no_home_dir_path = "./test.json" mock_path.abspath.return_value = "/projects/test.json" validate_path(None, None, no_home_dir_path) mock_path.abspath.assert_called_with(no_home_dir_path) mock_path.isfile.assert_called_with(mock_path.abspath.return_value)
def test_validate_schema_path_with_abspath(self, mock_path): no_home_dir_path = './test.json' mock_path.abspath.return_value = '/projects/test.json' validate_path(None, None, no_home_dir_path) mock_path.abspath.assert_called_with(no_home_dir_path) mock_path.isfile.assert_called_with(mock_path.abspath.return_value)