Test that a manifest's namespace mounts its source under a dot path, that each shipped module loads from data/<lowered namespace>, and that a load failure's note reaches Fake, FakeTemplate and FakeStruct once

This commit is contained in:
2026-10-11 12:15:41 +02:00
committed by Lillem4n
parent 165b67e843
commit 29a76d5d9a
11 changed files with 165 additions and 58 deletions
+2 -2
View File
@@ -778,7 +778,7 @@ func TestTableOverridesByLayering(t *testing.T) {
}
func TestShippedTables(t *testing.T) {
f := newGenerator(t, "data/misc/misc", WithSeed(1))
f := newBareModule(t, "misc", WithSeed(1))
for path, want := range map[string]string{
"territory[SE]": "Sweden",
"territory[Sweden].alpha3": "SWE",
@@ -992,7 +992,7 @@ func TestEveryTldRowSpellsItsKey(t *testing.T) {
// columns asked for and that every row fills them.
func shippedRows(t *testing.T, file string, want ...string) (map[string]int, [][]string) {
t.Helper()
data, err := os.ReadFile(filepath.Join("data", "misc", "misc", file))
data, err := os.ReadFile(filepath.Join("data", "misc", file))
if err != nil {
t.Fatal(err)
}