We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 049afc1 commit 9dd2795Copy full SHA for 9dd2795
libs/databrickscfg/profiles_test.go
@@ -2,6 +2,8 @@ package databrickscfg
2
3
import (
4
"context"
5
+ "os"
6
+ "strings"
7
"testing"
8
9
"github.com/databricks/cli/libs/env"
@@ -32,7 +34,8 @@ func TestLoadProfilesReturnsHomedirAsTilde(t *testing.T) {
32
34
ctx = env.WithUserHomeDir(ctx, "testdata/sample-home")
33
35
file, err := Get(ctx)
36
require.NoError(t, err)
- assert.Equal(t, "testdata/sample-home/.databrickscfg", file.Path())
37
+ path := strings.ReplaceAll("testdata/sample-home/.databrickscfg", "/", string(os.PathSeparator))
38
+ assert.Equal(t, path, file.Path())
39
}
40
41
func TestLoadProfilesMatchWorkspace(t *testing.T) {
0 commit comments