Skip to content

Commit 27569cc

Browse files
committed
feat: add manage org publishing route
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent 0d64f52 commit 27569cc

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

tests/unit/test_routes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,13 @@ def add_redirect_rule(*args, **kwargs):
312312
traverse="/{organization_name}",
313313
domain=warehouse,
314314
),
315+
pretend.call(
316+
"manage.organization.publishing",
317+
"/manage/organization/{organization_name}/publishing/",
318+
factory="warehouse.organizations.models:OrganizationFactory",
319+
traverse="/{organization_name}",
320+
domain=warehouse,
321+
),
315322
pretend.call(
316323
"manage.organization.roles",
317324
"/manage/organization/{organization_name}/people/",

warehouse/routes.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ def includeme(config):
321321
traverse="/{organization_name}",
322322
domain=warehouse,
323323
)
324+
config.add_route(
325+
"manage.organization.publishing",
326+
"/manage/organization/{organization_name}/publishing/",
327+
factory="warehouse.organizations.models:OrganizationFactory",
328+
traverse="/{organization_name}",
329+
domain=warehouse,
330+
)
324331
config.add_route(
325332
"manage.organization.roles",
326333
"/manage/organization/{organization_name}/people/",

0 commit comments

Comments
 (0)