mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-10-18 00:18:00 +00:00
Let the snapshot cover every model of the corpus
This commit is contained in:
5 files changed
+40
-24
No files matched your search
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user