Switch qrunproxy to generated mock show, remove show.json
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user