| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -380,10 +380,12 @@ def _compute_path(self, path: Optional[str] = None) -> Optional[str]: | |||
| 380 | 380 | if self._parent is None or not self._from_parent_attrs: | |
| 381 | 381 | return path | |
| 382 | 382 | ||
| 383 | - data = { | ||
| 384 | - self_attr: getattr(self._parent, parent_attr, None) | ||
| 385 | - for self_attr, parent_attr in self._from_parent_attrs.items() | ||
| 386 | - } | ||
| 383 | + data: Dict[str, Optional[gitlab.utils.EncodedId]] = {} | ||
| 384 | + for self_attr, parent_attr in self._from_parent_attrs.items(): | ||
| 385 | + if not hasattr(self._parent, parent_attr): | ||
| 386 | + data[self_attr] = None | ||
| 387 | + continue | ||
| 388 | + data[self_attr] = gitlab.utils.EncodedId(getattr(self._parent, parent_attr)) | ||
| 387 | 389 | self._parent_attrs = data | |
| 388 | 390 | return path.format(**data) | |
| 389 | 391 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -391,7 +391,7 @@ def project_file(project): | |||
| 391 | 391 | @pytest.fixture(scope="function") | |
| 392 | 392 | def release(project, project_file): | |
| 393 | 393 | _id = uuid.uuid4().hex | |
| 394 | - name = f"test-release-{_id}" | ||
| 394 | + name = f"we_have_a_slash/test-release-{_id}" | ||
| 395 | 395 | ||
| 396 | 396 | project.refresh() # Gets us the current default branch | |
| 397 | 397 | release = project.releases.create( | |
| Back | FazBrowse Home | New Git URL |
0 commit comments