Skip to content

Commit

Permalink
tests: updated tests to new version of utils module
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 1715f39bbf8800c8e671b7295383d4af88a249f95eb211203510100f03c6d5ee
  • Loading branch information
thindil committed Jun 20, 2024
1 parent 082503c commit 0a71f1c
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/aliases.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ include ../src/aliases
suite "Unit tests for aliases module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test2.db")
let db: DbConn = initDb(dbName = "test2.db".Path)
var
myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]()
commands: ref Table[string, CommandData] = newTable[string, CommandData]()
Expand Down
2 changes: 1 addition & 1 deletion tests/commands.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ include ../src/commands
suite "Unit tests for commands module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test3.db")
let db: DbConn = initDb(dbName = "test3.db".Path)

checkpoint "Adding testing aliases if needed"
db.addAliases
Expand Down
3 changes: 2 additions & 1 deletion tests/commandslist.nim
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

## Provides unit tests for commandslist module

import std/paths
import utils/utils
import ../src/db
import unittest2
Expand All @@ -33,7 +34,7 @@ include ../src/commandslist
suite "Unit tests for commandslist module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test4.db")
let db: DbConn = initDb(dbName = "test4.db".Path)

checkpoint "Adding testing aliases if needed"
db.addAliases
Expand Down
2 changes: 1 addition & 1 deletion tests/completion.nim
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ include ../src/completion
suite "Unit tests for completion module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test5.db")
let db: DbConn = initDb(dbName = "test5.db".Path)
var
myaliases: ref OrderedTable[string, int] = newOrderedTable[string, int]()
commands: ref Table[string, CommandData] = newTable[string, CommandData]()
Expand Down
2 changes: 1 addition & 1 deletion tests/db.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ include ../src/db
suite "Unit tests for db module":

checkpoint "Initializing the tests"
let db: DbConn = initDb(dbName = "test15.db")
let db: DbConn = initDb(dbName = "test15.db".Path)
var commands: ref Table[string, CommandData] = newTable[string, CommandData]()

test "Initialization of the shell's database's commands":
Expand Down

0 comments on commit 0a71f1c

Please sign in to comment.