@@ -24,10 +24,10 @@ def test_pull_env_command_no_auth(monkeypatch):
24
24
):
25
25
monkeypatch .setenv ("DG_CLI_CONFIG" , str (Path (cloud_config_dir ) / "dg.toml" ))
26
26
monkeypatch .setenv ("DAGSTER_CLOUD_CLI_CONFIG" , str (Path (cloud_config_dir ) / "config" ))
27
- result = runner .invoke ("plus" , "env " , "pull " )
27
+ result = runner .invoke ("plus" , "pull " , "env " )
28
28
assert result .exit_code != 0 , result .output + " " + str (result .exception )
29
29
assert (
30
- "`dg plus env pull` requires authentication with Dagster Plus. Run `dg plus login` to authenticate."
30
+ "`dg plus pull env ` requires authentication with Dagster Plus. Run `dg plus login` to authenticate."
31
31
in str (result .output )
32
32
)
33
33
@@ -50,7 +50,7 @@ def test_pull_env_command_auth_err(dg_plus_cli_config):
50
50
},
51
51
expected_variables = {"onlyViewable" : True , "scopes" : {"localDeploymentScope" : True }},
52
52
)
53
- result = runner .invoke ("plus" , "env " , "pull " )
53
+ result = runner .invoke ("plus" , "pull " , "env " )
54
54
assert result .exit_code != 0 , result .output + " " + str (result .exception )
55
55
assert "Unauthorized: Not authorized" in str (result .output )
56
56
@@ -74,7 +74,7 @@ def test_pull_env_command_python_err(dg_plus_cli_config):
74
74
},
75
75
expected_variables = {"onlyViewable" : True , "scopes" : {"localDeploymentScope" : True }},
76
76
)
77
- result = runner .invoke ("plus" , "env " , "pull " )
77
+ result = runner .invoke ("plus" , "pull " , "env " )
78
78
assert result .exit_code != 0 , result .output + " " + str (result .exception )
79
79
assert "Error: An error has occurred" in str (result .output )
80
80
@@ -121,7 +121,7 @@ def test_pull_env_command_project(dg_plus_cli_config):
121
121
},
122
122
expected_variables = {"onlyViewable" : True , "scopes" : {"localDeploymentScope" : True }},
123
123
)
124
- result = runner .invoke ("plus" , "env " , "pull " )
124
+ result = runner .invoke ("plus" , "pull " , "env " )
125
125
assert result .exit_code == 0 , result .output + " " + str (result .exception )
126
126
assert result .output .strip () == "Environment variables saved to .env"
127
127
@@ -174,7 +174,7 @@ def test_pull_env_command_workspace(dg_plus_cli_config):
174
174
},
175
175
expected_variables = {"onlyViewable" : True , "scopes" : {"localDeploymentScope" : True }},
176
176
)
177
- result = runner .invoke ("plus" , "env " , "pull " )
177
+ result = runner .invoke ("plus" , "pull " , "env " )
178
178
assert result .exit_code == 0 , result .output + " " + str (result .exception )
179
179
assert (
180
180
result .output .strip ()
0 commit comments