@@ -22,7 +22,7 @@ def test_build_typers_command_works_for_default_project(cli_runner):
2222def test_build_typers_ellar_typer_for_specific_project_works ():
2323 os .chdir (sample_app_path )
2424 result = subprocess .run (
25- ["ellar" , "-p " , "example_project_2" , "db" , "create-migration" ],
25+ ["ellar" , "--project " , "example_project_2" , "db" , "create-migration" ],
2626 stdout = subprocess .PIPE ,
2727 )
2828 assert result .returncode == 0
@@ -40,14 +40,14 @@ def test_build_typers_command_for_specific_project_works():
4040 os .chdir (sample_app_path )
4141
4242 result = subprocess .run (
43- ["ellar" , "-p " , "example_project" , "whatever-you-want" ],
43+ ["ellar" , "--project " , "example_project" , "whatever-you-want" ],
4444 stdout = subprocess .PIPE ,
4545 )
4646 assert result .returncode == 0
4747 assert result .stdout == b"Whatever you want command\n "
4848
4949 result = subprocess .run (
50- ["ellar" , "-p " , "example_project_2" , "whatever-you-want" ],
50+ ["ellar" , "--project " , "example_project_2" , "whatever-you-want" ],
5151 stdout = subprocess .PIPE ,
5252 )
5353 assert result .returncode == 0
@@ -60,12 +60,12 @@ def test_help_command(cli_runner):
6060 assert result .returncode == 0
6161
6262 result = subprocess .run (
63- ["ellar" , "-p " , "example_project" , "--help" ], stdout = subprocess .PIPE
63+ ["ellar" , "--project " , "example_project" , "--help" ], stdout = subprocess .PIPE
6464 )
6565 assert result .returncode == 0
6666
6767 result = subprocess .run (
68- ["ellar" , "-p " , "example_project_2" , "--help" ], stdout = subprocess .PIPE
68+ ["ellar" , "--project " , "example_project_2" , "--help" ], stdout = subprocess .PIPE
6969 )
7070 assert result .returncode == 0
7171
0 commit comments