(t *testing.T)
| 44 | } |
| 45 | |
| 46 | func TestCreateSqliteFolder(t *testing.T) { |
| 47 | tmpDir := test.NewTmpDir("gotify_testcreatesqlitefolder") |
| 48 | defer tmpDir.Clean() |
| 49 | |
| 50 | db, err := New("sqlite3", tmpDir.Path("somepath/testdb.db"), "defaultUser", "defaultPass", 5, true) |
| 51 | assert.Nil(t, err) |
| 52 | assert.DirExists(t, tmpDir.Path("somepath")) |
| 53 | db.Close() |
| 54 | } |
| 55 | |
| 56 | func TestWithAlreadyExistingSqliteFolder(t *testing.T) { |
| 57 | tmpDir := test.NewTmpDir("gotify_testwithexistingfolder") |