diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-07-20 20:23:41 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-07-20 20:23:41 +0100 |
commit | c7766d087d6cdd691e60f4b2d317030543209c08 (patch) | |
tree | 2fbb285b78d5590e7ca1bce2a0e486bd9569dad3 /pkg/db/setup_test.go | |
parent | ccbf44bac566ff312f168e563afb003cf0ee3da3 (diff) |
first test passing that puts datamap data into sqlite3
Diffstat (limited to '')
-rw-r--r-- | pkg/db/setup_test.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkg/db/setup_test.go b/pkg/db/setup_test.go index d5f12ba..3787d2e 100644 --- a/pkg/db/setup_test.go +++ b/pkg/db/setup_test.go @@ -59,10 +59,9 @@ func TestDatamapGoesIntoDB(t *testing.T) { if err != nil { t.Fatal("Expected to be able to set up the database.") } - - d, _ := reader.ReadDML("testdata/datamap.csv") - for _, x := range d { - t.Log(x.Key) + d, _ := reader.ReadDML("./testdata/datamap.csv") + err = DatamapToDB(d, db, "First Datamap") + if err != nil { + t.Errorf("Unable to write datamap to database file because %v.", err) } - } |