aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-hub/tests/test_group_description.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-hub/tests/test_group_description.py')
-rw-r--r--packages/meshbay-hub/tests/test_group_description.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/packages/meshbay-hub/tests/test_group_description.py b/packages/meshbay-hub/tests/test_group_description.py
index b18c90a..b41a7db 100644
--- a/packages/meshbay-hub/tests/test_group_description.py
+++ b/packages/meshbay-hub/tests/test_group_description.py
@@ -35,7 +35,7 @@ async def _group(client, headers, name="described", **kw):
@pytest.mark.asyncio
async def test_the_owner_can_write_a_description(client):
- owner = await _user(client, "writer")
+ owner = await _user(client, "writer_test")
gid = await _group(client, owner)
r = await client.patch(f"/v1/groups/{gid}",
@@ -49,10 +49,10 @@ async def test_the_owner_can_write_a_description(client):
@pytest.mark.asyncio
async def test_a_member_cannot(client):
- owner = await _user(client, "owner2")
- member = await _user(client, "member2")
+ owner = await _user(client, "owner2_test")
+ member = await _user(client, "member2_test")
gid = await _group(client, owner, name="not-yours")
- await client.post(f"/v1/groups/{gid}/members/member2", json={}, headers=owner)
+ await client.post(f"/v1/groups/{gid}/members/member2_test", json={}, headers=owner)
r = await client.patch(f"/v1/groups/{gid}",
json={"description": "mine now"}, headers=member)
@@ -61,7 +61,7 @@ async def test_a_member_cannot(client):
@pytest.mark.asyncio
async def test_an_empty_description_clears_it(client):
- owner = await _user(client, "clearer")
+ owner = await _user(client, "clearer_test")
gid = await _group(client, owner, name="clearme", description="temporary")
r = await client.patch(f"/v1/groups/{gid}", json={"description": " "},
@@ -77,7 +77,7 @@ async def test_the_terms_members_joined_on_are_not_editable(client):
members agreed to be in. Changing that needs a decision about who gets told,
so the endpoint ignores it rather than half-implementing it.
"""
- owner = await _user(client, "sneaky")
+ owner = await _user(client, "sneaky_test")
gid = await _group(client, owner, name="private-please", visibility="private")
await client.patch(f"/v1/groups/{gid}",
@@ -94,7 +94,7 @@ async def test_the_terms_members_joined_on_are_not_editable(client):
@pytest.mark.asyncio
async def test_a_long_description_is_truncated_not_refused(client):
- owner = await _user(client, "verbose")
+ owner = await _user(client, "verbose_test")
gid = await _group(client, owner, name="long")
r = await client.patch(f"/v1/groups/{gid}", json={"description": "x" * 900},