Merge branch 'phase/63-krea-only'
# Conflicts: # docs/phases/11-events/README.md
This commit is contained in:
@@ -105,8 +105,14 @@ public class PortraitApiTests(AppHostFixture fixture)
|
||||
Assert.NotNull(settings);
|
||||
Assert.NotEmpty(settings!.Presets);
|
||||
Assert.NotEmpty(settings.Models);
|
||||
Assert.Contains(settings.Models, model => model.Id == "museByStableYogi_v30TurboGguf.gguf");
|
||||
Assert.Contains(settings.Models, model => model.Id == "realismByStableYogi_v25INT8Turbo.safetensors");
|
||||
var ids = settings.Models.Select(model => model.Id).ToList();
|
||||
Assert.Equal(
|
||||
["museByStableYogi_v30TurboGguf.gguf", "realismByStableYogi_v25INT8Turbo.safetensors"],
|
||||
ids);
|
||||
Assert.DoesNotContain("babesByStableYogi_v4XLLightning.safetensors", ids);
|
||||
Assert.DoesNotContain("DreamShaper_XL_-_Lightning_DPM++_SDE.safetensors", ids);
|
||||
Assert.DoesNotContain("epicrealismXL_VXIAbeast4SLightning.safetensors", ids);
|
||||
Assert.DoesNotContain("lustifyNSFWCheckpoint_v40DMD2.safetensors", ids);
|
||||
Assert.False(string.IsNullOrWhiteSpace(settings.ActivePresetId));
|
||||
}
|
||||
|
||||
@@ -127,13 +133,21 @@ public class PortraitApiTests(AppHostFixture fixture)
|
||||
Assert.True(presets.TryGetProperty("models", out var models));
|
||||
Assert.True(models.GetArrayLength() > 0);
|
||||
var ids = models.EnumerateArray().Select(model => model.GetProperty("id").GetString()).ToList();
|
||||
Assert.Contains("museByStableYogi_v30TurboGguf.gguf", ids);
|
||||
Assert.Contains("realismByStableYogi_v25INT8Turbo.safetensors", ids);
|
||||
Assert.Equal(
|
||||
["museByStableYogi_v30TurboGguf.gguf", "realismByStableYogi_v25INT8Turbo.safetensors"],
|
||||
ids);
|
||||
Assert.DoesNotContain("babesByStableYogi_v4XLLightning.safetensors", ids);
|
||||
Assert.DoesNotContain("DreamShaper_XL_-_Lightning_DPM++_SDE.safetensors", ids);
|
||||
var defaultPreset = presets.GetProperty("presets").EnumerateArray()
|
||||
.First(preset => preset.GetProperty("id").GetString() == "default");
|
||||
Assert.Equal(
|
||||
"realismByStableYogi_v25INT8Turbo.safetensors",
|
||||
defaultPreset.GetProperty("model").GetString());
|
||||
var childPreset = presets.GetProperty("presets").EnumerateArray()
|
||||
.First(preset => preset.GetProperty("id").GetString() == "child");
|
||||
Assert.Equal(
|
||||
"realismByStableYogi_v25INT8Turbo.safetensors",
|
||||
childPreset.GetProperty("model").GetString());
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in New Issue
Block a user