github.com/jgrancell/metasync@v0.0.0-20220105143315-c43793d9d9c1/configuration/configuration_test.go (about)

     1  package configuration
     2  
     3  import (
     4  	"os"
     5  	"testing"
     6  )
     7  
     8  func TestFetchConfig(t *testing.T) {
     9  	pwd, _ := os.Getwd()
    10  
    11  	os.Chdir("../testdata")
    12  	c := Configuration{
    13  		ConfigurationPath: ".metasync.yml",
    14  	}
    15  	c.Load()
    16  	os.Chdir(pwd)
    17  }