diff --git a/tests/help.nim b/tests/help.nim index 9cd14528..86a9247b 100644 --- a/tests/help.nim +++ b/tests/help.nim @@ -25,7 +25,7 @@ ## Provides unit tests for help module -import std/tables +import std/[paths, tables] import utils/utils import ../src/[aliases, db] import unittest2 @@ -34,7 +34,7 @@ include ../src/help suite "Unit tests for help module": checkpoint "Initializing the tests" - let db: DbConn = initDb(dbName = "test6.db") + let db: DbConn = initDb(dbName = "test6.db".Path) var commands: ref Table[string, CommandData] = newTable[string, CommandData]() test "Initializing the help system": diff --git a/tests/highlight.nim b/tests/highlight.nim index 5790f627..37754524 100644 --- a/tests/highlight.nim +++ b/tests/highlight.nim @@ -33,7 +33,7 @@ include ../src/highlight suite "Unit tests for highlight module": checkpoint "Initializing the tests" - let db: DbConn = initDb(dbName = "test7.db") + let db: DbConn = initDb(dbName = "test7.db".Path) var myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]() commands: ref Table[string, CommandData] = newTable[string, CommandData]() diff --git a/tests/history.nim b/tests/history.nim index bd2e3512..6fec1b65 100644 --- a/tests/history.nim +++ b/tests/history.nim @@ -34,7 +34,7 @@ include ../src/history suite "Unit tests for history module": checkpoint "Initializing the tests" - let db: DbConn = initDb(dbName = "test8.db") + let db: DbConn = initDb(dbName = "test8.db".Path) var commands: ref Table[string, CommandData] = newTable[string, CommandData]() checkpoint "Initializing the shell's history" diff --git a/tests/input.nim b/tests/input.nim index 36d4d477..573974c5 100644 --- a/tests/input.nim +++ b/tests/input.nim @@ -35,7 +35,7 @@ when defined(testInput): suite "Unit tests for input module": checkpoint "Initializing the tests" - let db: DbConn = initDb(dbName = "test8.db") + let db: DbConn = initDb(dbName = "test8.db".Path) test "Getting the command's arguments": {.ruleOff: "varUplevel".} diff --git a/tests/nish.nim b/tests/nish.nim index 28866cf8..7a79b9fb 100644 --- a/tests/nish.nim +++ b/tests/nish.nim @@ -38,7 +38,7 @@ suite "Unit tests for nish module": when defined(testInput): checkpoint "Initializing the tests" let - db: DbConn = initDb(dbName = "test10.db") + db: DbConn = initDb(dbName = "test10.db".Path) myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]() commands: ref Table[string, CommandData] = newTable[string, CommandData]()