topdata_test fix
This commit is contained in:
@@ -6273,7 +6273,7 @@ func TestNormalizeProjectImportsLegacyPlaceables(t *testing.T) {
|
|||||||
}`+"\n")
|
}`+"\n")
|
||||||
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "lock.json"), `{
|
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "lock.json"), `{
|
||||||
"placeables:armoire": 0,
|
"placeables:armoire": 0,
|
||||||
"placeable:tmp_crappile01": 16500
|
"placeables:tmp_crappile01": 16500
|
||||||
}`+"\n")
|
}`+"\n")
|
||||||
for _, name := range []string{
|
for _, name := range []string{
|
||||||
"add_ccfeb2019plcs.json",
|
"add_ccfeb2019plcs.json",
|
||||||
@@ -6293,7 +6293,7 @@ func TestNormalizeProjectImportsLegacyPlaceables(t *testing.T) {
|
|||||||
}
|
}
|
||||||
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
||||||
"entries": {
|
"entries": {
|
||||||
"placeable:tmp_crappile01": {
|
"placeables:tmp_crappile01": {
|
||||||
"Label": "Decoration: Pile 1 (Avernostra)",
|
"Label": "Decoration: Pile 1 (Avernostra)",
|
||||||
"ModelName": "tmp_crappile01",
|
"ModelName": "tmp_crappile01",
|
||||||
"Static": 1
|
"Static": 1
|
||||||
@@ -6335,7 +6335,7 @@ func TestNormalizeProjectImportsLegacyPlaceables(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("read placeables lock: %v", err)
|
t.Fatalf("read placeables lock: %v", err)
|
||||||
}
|
}
|
||||||
if !strings.Contains(string(lockRaw), `"placeable:tmp_crappile01": 16500`) {
|
if !strings.Contains(string(lockRaw), `"placeables:tmp_crappile01": 16500`) {
|
||||||
t.Fatalf("expected imported placeables lock IDs, got:\n%s", string(lockRaw))
|
t.Fatalf("expected imported placeables lock IDs, got:\n%s", string(lockRaw))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -7399,7 +7399,7 @@ func TestBuildSupportsCanonicalPlaceables(t *testing.T) {
|
|||||||
}`+"\n")
|
}`+"\n")
|
||||||
writeFile(t, filepath.Join(root, "topdata", "data", "placeables", "lock.json"), `{
|
writeFile(t, filepath.Join(root, "topdata", "data", "placeables", "lock.json"), `{
|
||||||
"placeables:armoire": 0,
|
"placeables:armoire": 0,
|
||||||
"placeable:tmp_crappile01": 16500
|
"placeables:tmp_crappile01": 16500
|
||||||
}`+"\n")
|
}`+"\n")
|
||||||
for _, name := range []string{
|
for _, name := range []string{
|
||||||
"add_ccfeb2019plcs.json",
|
"add_ccfeb2019plcs.json",
|
||||||
@@ -7419,7 +7419,7 @@ func TestBuildSupportsCanonicalPlaceables(t *testing.T) {
|
|||||||
}
|
}
|
||||||
writeFile(t, filepath.Join(root, "topdata", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
writeFile(t, filepath.Join(root, "topdata", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
||||||
"entries": {
|
"entries": {
|
||||||
"placeable:tmp_crappile01": {
|
"placeables:tmp_crappile01": {
|
||||||
"Label": "Decoration: Pile 1 (Avernostra)",
|
"Label": "Decoration: Pile 1 (Avernostra)",
|
||||||
"ModelName": "tmp_crappile01",
|
"ModelName": "tmp_crappile01",
|
||||||
"Static": 1
|
"Static": 1
|
||||||
@@ -7485,7 +7485,7 @@ with open(os.path.join(tlk, "sow_tlk.tlk"), "wb") as f:
|
|||||||
}`+"\n")
|
}`+"\n")
|
||||||
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "lock.json"), `{
|
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "lock.json"), `{
|
||||||
"placeables:armoire": 0,
|
"placeables:armoire": 0,
|
||||||
"placeable:tmp_crappile01": 16500
|
"placeables:tmp_crappile01": 16500
|
||||||
}`+"\n")
|
}`+"\n")
|
||||||
for _, name := range []string{
|
for _, name := range []string{
|
||||||
"add_ccfeb2019plcs.json",
|
"add_ccfeb2019plcs.json",
|
||||||
@@ -7505,7 +7505,7 @@ with open(os.path.join(tlk, "sow_tlk.tlk"), "wb") as f:
|
|||||||
}
|
}
|
||||||
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
writeFile(t, filepath.Join(root, "reference", "data", "placeables", "modules", "add_avernostragarbage.json"), `{
|
||||||
"entries": {
|
"entries": {
|
||||||
"placeable:tmp_crappile01": {
|
"placeables:tmp_crappile01": {
|
||||||
"Label": "Decoration: Pile 1 (Avernostra)",
|
"Label": "Decoration: Pile 1 (Avernostra)",
|
||||||
"ModelName": "tmp_crappile01",
|
"ModelName": "tmp_crappile01",
|
||||||
"Static": 1
|
"Static": 1
|
||||||
|
|||||||
Reference in New Issue
Block a user