Skip to content

Commit

Permalink
routes: update ToU route + test
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodruff <william@trailofbits.com>
  • Loading branch information
woodruffw committed Jul 2, 2024
1 parent 83b0c6d commit c627a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/unit/test_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ def add_redirect_rule(*args, **kwargs):
assert config.add_redirect_rule.calls == [
pretend.call(
f"https?://({warehouse}|localhost)/policy/terms-of-use/",
"https://policies.python.org/pypi.org/Terms-of-use/",
"https://policies.python.org/pypi.org/Terms-of-Use/",
),
pretend.call(
f"https?://({warehouse}|localhost)/policy/acceptable-use-policy/",
Expand Down
2 changes: 1 addition & 1 deletion warehouse/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def includeme(config):
_domain_prefix = rf"https?://({warehouse}|localhost)"
config.add_redirect_rule(
f"{_domain_prefix}/policy/terms-of-use/",
"https://policies.python.org/pypi.org/Terms-of-use/",
"https://policies.python.org/pypi.org/Terms-of-Use/",
)
config.add_redirect_rule(
f"{_domain_prefix}/policy/acceptable-use-policy/",
Expand Down

0 comments on commit c627a60

Please sign in to comment.