mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-25 01:00:16 -05:00
fix missing TestConsole* tests on Windows (#3213)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
committed by
GitHub
parent
91f7df965f
commit
1e48db34a4
@@ -84,11 +84,13 @@ func TestConsole_tfvars(t *testing.T) {
|
||||
}
|
||||
ui := cli.NewMockUi()
|
||||
view, _ := testView(t)
|
||||
streams, _ := terminal.StreamsForTesting(t)
|
||||
c := &ConsoleCommand{
|
||||
Meta: Meta{
|
||||
testingOverrides: metaOverridesForProvider(p),
|
||||
Ui: ui,
|
||||
View: view,
|
||||
Streams: streams,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -136,11 +138,13 @@ func TestConsole_unsetRequiredVars(t *testing.T) {
|
||||
}
|
||||
ui := cli.NewMockUi()
|
||||
view, _ := testView(t)
|
||||
streams, _ := terminal.StreamsForTesting(t)
|
||||
c := &ConsoleCommand{
|
||||
Meta: Meta{
|
||||
testingOverrides: metaOverridesForProvider(p),
|
||||
Ui: ui,
|
||||
View: view,
|
||||
Streams: streams,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -169,11 +173,13 @@ func TestConsole_variables(t *testing.T) {
|
||||
p := testProvider()
|
||||
ui := cli.NewMockUi()
|
||||
view, _ := testView(t)
|
||||
streams, _ := terminal.StreamsForTesting(t)
|
||||
c := &ConsoleCommand{
|
||||
Meta: Meta{
|
||||
testingOverrides: metaOverridesForProvider(p),
|
||||
Ui: ui,
|
||||
View: view,
|
||||
Streams: streams,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -211,12 +217,13 @@ func TestConsole_modules(t *testing.T) {
|
||||
p := applyFixtureProvider()
|
||||
ui := cli.NewMockUi()
|
||||
view, _ := testView(t)
|
||||
|
||||
streams, _ := terminal.StreamsForTesting(t)
|
||||
c := &ConsoleCommand{
|
||||
Meta: Meta{
|
||||
testingOverrides: metaOverridesForProvider(p),
|
||||
Ui: ui,
|
||||
View: view,
|
||||
Streams: streams,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user