@@ -62,15 +62,15 @@ def test_init_dest_flag_with_overwrite_flag(run_command, working_dir):
6262
6363
6464def 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"' )
6666 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
6868
6969
7070def test_init_config_file_flag_absolute_path (run_command , working_dir ):
7171 config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
7272 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 } "' )
7474 assert result .ok
7575 assert str (config_file ) in result .stdout
7676 assert config_file .exists ()
@@ -79,7 +79,7 @@ def test_init_config_file_flag_absolute_path(run_command, working_dir):
7979def test_init_config_file_flag_relative_path (run_command , working_dir ):
8080 config_file = Path (working_dir ) / "config.yaml"
8181 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"' )
8383 assert result .ok
8484 assert str (config_file ) in result .stdout
8585 assert config_file .exists ()
@@ -89,15 +89,15 @@ def test_init_config_file_flag_with_overwrite_flag(run_command, working_dir):
8989 config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
9090 assert not config_file .exists ()
9191
92- result = run_command (f'config init --config -file "{ config_file } "' )
92+ result = run_command (f'config init --dest -file "{ config_file } "' )
9393 assert result .ok
9494 assert config_file .exists ()
9595
96- result = run_command (f'config init --config -file "{ config_file } "' )
96+ result = run_command (f'config init --dest -file "{ config_file } "' )
9797 assert result .failed
9898 assert "Config file already exists, use --overwrite to discard the existing one." in result .stderr
9999
100- result = run_command (f'config init --config -file "{ config_file } " --overwrite' )
100+ result = run_command (f'config init --dest -file "{ config_file } " --overwrite' )
101101 assert result .ok
102102 assert str (config_file ) in result .stdout
103103
@@ -106,7 +106,7 @@ def test_dump(run_command, working_dir):
106106 # Create a config file first
107107 config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
108108 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 } "' )
110110 assert result .ok
111111 assert config_file .exists ()
112112
@@ -120,7 +120,7 @@ def test_dump_with_config_file_flag(run_command, working_dir):
120120 # Create a config file first
121121 config_file = Path (working_dir ) / "config" / "test" / "config.yaml"
122122 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' )
124124 assert result .ok
125125 assert config_file .exists ()
126126
0 commit comments