@@ -62,15 +62,15 @@ def test_init_dest_flag_with_overwrite_flag(run_command, working_dir):
62
62
63
63
64
64
def test_init_dest_and_config_file_flags (run_command , working_dir ):
65
- result = run_command ('config init --config -file "some_other_path" --dest-dir "some_path"' )
65
+ result = run_command ('config init --dest -file "some_other_path" --dest-dir "some_path"' )
66
66
assert result .failed
67
- assert "Can't use both --config -file and --dest-dir flags at the same time." in result .stderr
67
+ assert "Can't use both --dest -file and --dest-dir flags at the same time." in result .stderr
68
68
69
69
70
70
def test_init_config_file_flag_absolute_path (run_command , working_dir ):
71
71
config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
72
72
assert not config_file .exists ()
73
- result = run_command (f'config init --config -file "{ config_file } "' )
73
+ result = run_command (f'config init --dest -file "{ config_file } "' )
74
74
assert result .ok
75
75
assert str (config_file ) in result .stdout
76
76
assert config_file .exists ()
@@ -79,7 +79,7 @@ def test_init_config_file_flag_absolute_path(run_command, working_dir):
79
79
def test_init_config_file_flag_relative_path (run_command , working_dir ):
80
80
config_file = Path (working_dir ) / "config.yaml"
81
81
assert not config_file .exists ()
82
- result = run_command ('config init --config -file "config.yaml"' )
82
+ result = run_command ('config init --dest -file "config.yaml"' )
83
83
assert result .ok
84
84
assert str (config_file ) in result .stdout
85
85
assert config_file .exists ()
@@ -89,15 +89,15 @@ def test_init_config_file_flag_with_overwrite_flag(run_command, working_dir):
89
89
config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
90
90
assert not config_file .exists ()
91
91
92
- result = run_command (f'config init --config -file "{ config_file } "' )
92
+ result = run_command (f'config init --dest -file "{ config_file } "' )
93
93
assert result .ok
94
94
assert config_file .exists ()
95
95
96
- result = run_command (f'config init --config -file "{ config_file } "' )
96
+ result = run_command (f'config init --dest -file "{ config_file } "' )
97
97
assert result .failed
98
98
assert "Config file already exists, use --overwrite to discard the existing one." in result .stderr
99
99
100
- result = run_command (f'config init --config -file "{ config_file } " --overwrite' )
100
+ result = run_command (f'config init --dest -file "{ config_file } " --overwrite' )
101
101
assert result .ok
102
102
assert str (config_file ) in result .stdout
103
103
@@ -106,7 +106,7 @@ def test_dump(run_command, working_dir):
106
106
# Create a config file first
107
107
config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
108
108
assert not config_file .exists ()
109
- result = run_command (f'config init --config -file "{ config_file } "' )
109
+ result = run_command (f'config init --dest -file "{ config_file } "' )
110
110
assert result .ok
111
111
assert config_file .exists ()
112
112
@@ -120,7 +120,7 @@ def test_dump_with_config_file_flag(run_command, working_dir):
120
120
# Create a config file first
121
121
config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
122
122
assert not config_file .exists ()
123
- result = run_command (f'config init --config -file "{ config_file } " --additional-urls=https://example.com' )
123
+ result = run_command (f'config init --dest -file "{ config_file } " --additional-urls=https://example.com' )
124
124
assert result .ok
125
125
assert config_file .exists ()
126
126
0 commit comments