From cec23e66f9bd5022845162ae4dd3f2633b5236fa Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 28 May 2022 19:24:48 -0400 Subject: General refactoring & cleanup Signed-off-by: Dave Henderson --- context_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'context_test.go') diff --git a/context_test.go b/context_test.go index 27cf7d94..2b95ebb8 100644 --- a/context_test.go +++ b/context_test.go @@ -7,7 +7,6 @@ import ( "testing" "github.com/hairyhenderson/gomplate/v3/data" - "github.com/hairyhenderson/gomplate/v3/internal/config" "github.com/stretchr/testify/assert" ) @@ -43,7 +42,7 @@ func TestCreateContext(t *testing.T) { } os.Setenv("foo", "foo: bar") defer os.Unsetenv("foo") - c, err = createTmplContext(ctx, map[string]config.DataSource{"foo": {URL: uf}}, d) + c, err = createTmplContext(ctx, []string{"foo"}, d) assert.NoError(t, err) assert.IsType(t, &tmplctx{}, c) tctx := c.(*tmplctx) @@ -52,7 +51,7 @@ func TestCreateContext(t *testing.T) { os.Setenv("bar", "bar: baz") defer os.Unsetenv("bar") - c, err = createTmplContext(ctx, map[string]config.DataSource{".": {URL: ub}}, d) + c, err = createTmplContext(ctx, []string{"."}, d) assert.NoError(t, err) assert.IsType(t, map[string]interface{}{}, c) ds = c.(map[string]interface{}) -- cgit v1.2.3