All altsrc tests passing
This commit is contained in:
parent
c75fee9224
commit
75b7f09a46
@ -319,7 +319,7 @@ func runTest(t *testing.T, test testApplyInputSource) *cli.Context {
|
|||||||
defer os.Setenv(test.EnvVarName, "")
|
defer os.Setenv(test.EnvVarName, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
test.Flag.Apply(set)
|
_ = test.Flag.Apply(set)
|
||||||
if test.ContextValue != nil {
|
if test.ContextValue != nil {
|
||||||
f := set.Lookup(test.FlagName)
|
f := set.Lookup(test.FlagName)
|
||||||
f.Value = test.ContextValue
|
f.Value = test.ContextValue
|
||||||
|
@ -7,10 +7,10 @@ package altsrc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
|
"github.com/urfave/cli/v2"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
"github.com/urfave/cli/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestCommandYamlFileTest(t *testing.T) {
|
func TestCommandYamlFileTest(t *testing.T) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user