refactor customer_test.go

This commit is contained in:
2024-10-14 16:54:24 -05:00
parent 39d4a1e7f0
commit 9c33a61570
2 changed files with 20 additions and 18 deletions

View File

@@ -7,6 +7,7 @@ import (
_ "github.com/mattn/go-sqlite3" // Import the SQLite3 driver
"io/ioutil"
"log"
"os"
"path/filepath"
"strings"
)
@@ -24,7 +25,9 @@ type Root struct {
}
func main() {
dbPaths := []string{"/Users/donov/databases/test.db", "/Users/donov/databases/nkode.db"}
testDbPath := os.Getenv("TEST_DB_PATH")
dbPath := os.Getenv("DB_PATH")
dbPaths := []string{testDbPath, dbPath}
outputStr := MakeSvgFiles()
for _, path := range dbPaths {
MakeTables(path)