Let the snapshot cover every model of the corpus

This commit is contained in:
Thorsten Sommer committed 2026-09-12 20:33:13 +02:00
1 parent 672237a225
commit 8fdef4aa6c
5 files changed
+40 -24

No files matched your search

+1 -4
View File
@@ -18,10 +18,7 @@ public sealed class SnapshotWriterTests
[Test]
public void TakeTheSnapshotAnew()
{
var knownWrong = ExpectedChanges.ENTRIES.Select(change => (change.Provider, change.ModelId)).ToHashSet();
var entries = ModelCorpus.ENTRIES.Where(entry => !knownWrong.Contains((entry.Provider, entry.ModelId)));
File.WriteAllText(CapabilitySnapshot.FILE_PATH, CapabilitySnapshot.Render(entries));
File.WriteAllText(CapabilitySnapshot.FILE_PATH, CapabilitySnapshot.Render(ModelCorpus.ENTRIES));
File.Delete(CapabilitySnapshot.ACTUAL_FILE_PATH);
TestContext.Out.WriteLine($"Wrote {CapabilitySnapshot.FILE_PATH}. Read the diff before committing it.");