(self, path)
| 82 | |
| 83 | class PathTest: |
| 84 | def _make_path(self, path): |
| 85 | r = [] |
| 86 | for i, item in enumerate(path): |
| 87 | if i % 2 == 0: |
| 88 | item = inspect(item) |
| 89 | else: |
| 90 | if isinstance(item, str): |
| 91 | item = inspect(r[-1]).mapper.attrs[item] |
| 92 | r.append(item) |
| 93 | return tuple(r) |
| 94 | |
| 95 | def _make_path_registry(self, path): |
| 96 | return orm_util.PathRegistry.coerce(self._make_path(path)) |
no test coverage detected