Browse Source

Configure authorization via dotenv.

capstan-migrations
Benjamin Shelton 1 year ago
parent
commit
987e587145
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      keystar_init_test.go

+ 9
- 0
keystar_init_test.go View File

@ -1,11 +1,20 @@
package keystar_test
import (
"fmt"
"os"
"testing"
"github.com/joho/godotenv"
)
func TestMain(m *testing.M) {
if err := godotenv.Load(".tests.env"); err != nil {
if !os.IsNotExist(err) {
fmt.Println("WARNING: loading .env:", err)
}
}
if _, err := os.Stat("./testdata/fs"); !os.IsNotExist(err) {
os.RemoveAll("testdata/fs")
}


Loading…
Cancel
Save