Use curly quote for default archive name instead of straight quote (#2700)

Tiny little thing that's been bugging me for a little while now.
This commit is contained in:
Emma Segal-Grossman 2025-07-16 11:41:19 -04:00 committed by GitHub
parent d91a3bc088
commit 945c458011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -719,12 +719,12 @@ class OrgOps:
async def set_default_org_name_from_user_name(
self, org: Organization, user_name: str
) -> None:
"""set's the org name and slug as "<USERNAME>'s Archive", adding a suffix for duplicates"""
"""set's the org name and slug as "<USERNAME>s Archive", adding a suffix for duplicates"""
suffix = ""
count = 1
while True:
org.name = f"{user_name}'s Archive{suffix}"
org.name = f"{user_name}s Archive{suffix}"
org.slug = slug_from_name(org.name)
try:

View File

@ -122,7 +122,7 @@ def test_validate_new_org_with_quotas_and_update_name(admin_auth_headers):
data = r.json()
assert data["slug"] == "test-users-archive"
assert data["name"] == "Test User's Archive"
assert data["name"] == "Test Users Archive"
assert data["quotas"] == {
"maxPagesPerCrawl": 100,
@ -239,7 +239,7 @@ def test_login_existing_user_for_invite():
org = data["org"]
assert org["id"] == new_subs_oid_2
assert org["name"] == "Test User's Archive 2"
assert org["name"] == "Test Users Archive 2"
assert org["slug"] == "test-users-archive-2"
assert org["quotas"] == {