tests: the federation surface's group helper is FederatedGroup, so it no longer clashes with the client API's

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ELjqpznMFMNrJoJUj6K5p2
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-03 11:54:57 +02:00
1 parent 2645dea26f
commit 31d614efd4
4 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -86,7 +86,7 @@ namespace PrivaPub.Tests.Http
public async Task WebFinger_finds_the_instance_actor_and_a_community()
{
var owner = await _host.Persona(await _host.SignUp(), "fingerowner");
var community = await _host.Group(owner, community: true);
var community = await _host.FederatedGroup(owner, community: true);
var instance = await WebFinger($"acct:privapub@{Domain}");
var group = await WebFinger($"acct:{community.UserName}@{Domain}");
@@ -109,7 +109,7 @@ namespace PrivaPub.Tests.Http
public async Task WebFinger_answers_for_a_circle()
{
var owner = await _host.Persona(await _host.SignUp(), "circlefinger");
var circle = await _host.Group(owner, community: false);
var circle = await _host.FederatedGroup(owner, community: false);
var found = await WebFinger($"acct:{circle.UserName}@{Domain}");
@@ -195,7 +195,7 @@ namespace PrivaPub.Tests.Http
await _host.PublishLocated(persona, "around here");
await _host.FederatedCopy(persona);
await _host.Reblog(friend, shown);
var circle = await _host.Group(persona, community: false);
var circle = await _host.FederatedGroup(persona, community: false);
await _host.Publish(persona, new StatusDraft { Text = "circle only", PlainText = true, GroupId = circle.Id });
Assert.Equal(start + 2, await LocalPosts());