Complete phase 39 school owners with owner-scoped API, menu, and tests.
Drop golden save load tests in favor of incompatible-save behavior; dress legacy people files on reload; fix AppHost isolation for multi-user socket and save cleanup. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,14 +19,21 @@ public class SchoolSeedTests(AppHostFixture fixture)
|
||||
|
||||
var first = await SchoolApiTests.CreateAsync(client, "Сид одинаковый А", Start, seed: 42);
|
||||
var second = await SchoolApiTests.CreateAsync(client, "Сид одинаковый Б", Start, seed: 42);
|
||||
var other = await SchoolApiTests.CreateAsync(client, "Сид другой", Start, seed: 7);
|
||||
|
||||
var firstYearFive = await YearFiveAsync(client, first.Id);
|
||||
var secondYearFive = await YearFiveAsync(client, second.Id);
|
||||
var otherYearFive = await YearFiveAsync(client, other.Id);
|
||||
|
||||
Assert.Equal(firstYearFive, secondYearFive);
|
||||
Assert.NotEqual(firstYearFive, otherYearFive);
|
||||
|
||||
using (var delete = await client.DeleteAsync($"/api/schools/{first.Id}", TestContext.Current.CancellationToken))
|
||||
{
|
||||
delete.EnsureSuccessStatusCode();
|
||||
}
|
||||
|
||||
var other = await SchoolApiTests.CreateAsync(client, "Сид другой", Start, seed: 7);
|
||||
var otherYearFive = await YearFiveAsync(client, other.Id);
|
||||
|
||||
Assert.NotEqual(secondYearFive, otherYearFive);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user