Switch qrunproxy to generated mock show, remove show.json

This commit is contained in:
Ian Gulliver
2026-02-20 20:23:34 -07:00
parent 287ca83724
commit 4e2135f483
4 changed files with 3 additions and 204 deletions

View File

@@ -1,27 +1,6 @@
package main
import (
"encoding/json"
"os"
"testing"
)
func TestBuildTimelineFromShowJSON(t *testing.T) {
buf, err := os.ReadFile("static/show.json")
if err != nil {
t.Fatal(err)
}
var show Show
if err := json.Unmarshal(buf, &show); err != nil {
t.Fatal(err)
}
if err := show.Validate(); err != nil {
t.Fatal(err)
}
if _, err := BuildTimeline(&show); err != nil {
t.Fatal(err)
}
}
import "testing"
func TestBuildTimelineFromMockShow(t *testing.T) {
show := GenerateMockShow(7, 100, 1000)