aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/db/setup_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-20 20:23:41 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-20 20:23:41 +0100
commitc7766d087d6cdd691e60f4b2d317030543209c08 (patch)
tree2fbb285b78d5590e7ca1bce2a0e486bd9569dad3 /pkg/db/setup_test.go
parentccbf44bac566ff312f168e563afb003cf0ee3da3 (diff)
first test passing that puts datamap data into sqlite3
Diffstat (limited to '')
-rw-r--r--pkg/db/setup_test.go9
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)
}
-
}