Skip to content

Commit 39057e8

Browse files
authored
Merge branch 'main' into typos
2 parents 01db267 + b3a5c66 commit 39057e8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

pydis_site/apps/content/resources/frequently-asked-questions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ You can also open an issue on our meta repo on GitHub, which can be found [here]
119119
While we love our blurple Python logo, we also enjoy celebrating other events throughout the year, like Advent of Code, Pride Month, Black History Month, Valentine's Day, Diwali, and more! In the spirit of those celebrations, we like to have some fun and change our icon instead.
120120
If you're wondering why it's changed this time, check out `#changelog` on the server, as the reasoning for the recent change will be there.
121121

122-
If you'd like to contribute and create a Python Discord server icon for us to use, check out [our branding repo](https://github.com/python-discord/branding) for what we currently have and talk to us in the `#media-branding` channel in the server.
122+
If you'd like to contribute and create a Python Discord server icon for us to use, check out [our branding repo](https://github.com/python-discord/branding) for what we currently have and talk to us in the `#dev-branding` channel in the server.
123123

124124
## Misc
125125

pydis_site/apps/content/tests/test_views.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,16 @@ def test_get_context_data_breadcrumbs(self):
167167
self.ViewClass.dispatch(request, location="category/subcategory/with_metadata")
168168

169169
context = self.ViewClass.get_context_data()
170+
171+
# Convert to paths to avoid dealing with non-standard path separators
172+
for item in context["breadcrumb_items"]:
173+
item["path"] = Path(item["path"])
174+
170175
self.assertEquals(
171176
context["breadcrumb_items"],
172177
[
173-
{"name": PARSED_CATEGORY_INFO["title"], "path": "."},
174-
{"name": PARSED_CATEGORY_INFO["title"], "path": "category"},
175-
{"name": PARSED_CATEGORY_INFO["title"], "path": "category/subcategory"},
178+
{"name": PARSED_CATEGORY_INFO["title"], "path": Path(".")},
179+
{"name": PARSED_CATEGORY_INFO["title"], "path": Path("category")},
180+
{"name": PARSED_CATEGORY_INFO["title"], "path": Path("category/subcategory")},
176181
]
177182
)

0 commit comments

Comments
 (0)