chore(bootstrap): refresh stale GlobalsImporter references in docs/test names

This commit is contained in:
gamer147
2026-05-26 16:44:54 -04:00
parent c02991a5c2
commit 141f34f817
19 changed files with 41 additions and 44 deletions

View File

@@ -229,7 +229,7 @@ public class LoadControllerTests
[Test]
public async Task Index_surfaces_seeded_globals_after_bootstrap()
{
// Verifies the end-to-end seed → repo → controller wiring for the prod-captured globals.
// Verifies the end-to-end seed → repo → controller wiring for the load-index globals.
// Counts and spot-checked values come from the 2026-05-23 capture; if a recapture lands
// with different cardinalities, update the assertions alongside.
using var factory = new SVSimTestFactory();
@@ -278,7 +278,7 @@ public class LoadControllerTests
Assert.That(mri.GetProperty("abilities").EnumerateObject().Count(), Is.EqualTo(6));
// my_rotation_info.schedules drives the client's "Custom Rotation" button visibility
// (Wizard/MyRotationAllInfo.cs:45 — IsMyRotationEnable). GlobalsImporter sources the
// (Wizard/MyRotationAllInfo.cs:45 — IsMyRotationEnable). RotationConfigImporter sources the
// window from the prod capture; default-initialised DateTime.MinValue values would hide
// the button. Assert the captured 2024→2030 free_battle window round-trips through the
// MyRotationScheduleConfig section.
@@ -299,7 +299,7 @@ public class LoadControllerTests
Assert.That(pri.GetProperty("id").GetString(), Is.EqualTo("1"));
// rotation_card_set_id_list: now comes from the real CardSets table — six entries after
// GlobalsImporter flags IsInRotation on the rotation_card_set_id_list seeded ids. But
// RotationFlagUpdater flags IsInRotation on the rotation_card_set_ids seeded list. But
// CardImport isn't run in tests, so the table is empty and we fall back to StubRotationSets
// (3 entries). That's still ≥ 2 so the client won't crash.
Assert.That(root.GetProperty("rotation_card_set_id_list").GetArrayLength(),

View File

@@ -12,10 +12,10 @@ namespace SVSim.UnitTests.Controllers;
/// Drives the importer + controller against the full production pack seed (35 packs). Guards
/// against regressions in either layer caused by future seed refreshes.
/// </summary>
public class PackControllerProdCaptureTests
public class PackControllerFullCatalogTests
{
[Test]
public async Task Info_returns_full_35_pack_catalog_from_prod_capture()
public async Task Info_returns_full_35_pack_catalog_from_production_seed()
{
// The production seed (packs.json) is overlaid by a 3-pack test fixture in the default test
// output dir (see SVSim.UnitTests.csproj). For this test we need the FULL 35-pack catalog,
@@ -29,7 +29,7 @@ public class PackControllerProdCaptureTests
File.Copy(prodSeed, Path.Combine(tempSeedDir, "packs.json"));
using var factory = new SVSimTestFactory();
// Run the default seed pipeline first so GlobalsImporter populates surrounding tables,
// Run the default seed pipeline first so the per-domain importers populate surrounding tables,
// then re-run PackImporter against the prod seed to overwrite the fixture-loaded packs.
await factory.SeedGlobalsAsync();
using (var scope = factory.Services.CreateScope())

View File

@@ -30,7 +30,7 @@ public class PracticeControllerTests
public async Task Info_returns_non_empty_opponent_array()
{
using var factory = new SVSimTestFactory();
// Practice opponents are bootstrapped from prod-captures/practice-info-*.json into the
// Practice opponents are bootstrapped from seeds/practice-opponents.json into the
// PracticeOpponents table — empty by default in tests, so seed first.
await factory.SeedGlobalsAsync();
long viewerId = await factory.SeedViewerAsync();