This commit is contained in:
@@ -77,6 +77,28 @@ public class SchClassLiveDebugTests(ITestOutputHelper output)
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task 联调_教师组树()
|
||||
{
|
||||
if (!Live()) return;
|
||||
|
||||
var api = SchClassLiveDebug.Create();
|
||||
var sch = SchClassLiveDebug.Sch
|
||||
?? (await api.SchInfo.AllListAsync()).FirstOrDefault()?.SchSerId;
|
||||
if (string.IsNullOrEmpty(sch))
|
||||
{
|
||||
output.WriteLine("未取到学校序列号(设置 YH_SCHCLASS_DEBUG_SCH 或确认学校列表非空)");
|
||||
return;
|
||||
}
|
||||
|
||||
var tree = await api.SchTree.GetTeaTreeAsync(sch, null);
|
||||
output.WriteLine($"SchTree[{sch}] 根节点 {tree.Count} 个");
|
||||
foreach (var root in tree)
|
||||
{
|
||||
output.WriteLine($" {root.Id} / {root.Name} / type={root.Type} / 子节点 {root.Children?.Count ?? 0} 个");
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public async Task 联调_一键跑通全部端点()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user