88runner = CliRunner ()
99
1010
11- def test_reset_removes_fastapicloud_dir (tmp_path : Path ) -> None :
11+ def test_unlink_removes_fastapicloud_dir (tmp_path : Path ) -> None :
1212 config_dir = tmp_path / ".fastapicloud"
1313 config_dir .mkdir (parents = True )
1414
@@ -21,12 +21,12 @@ def test_reset_removes_fastapicloud_dir(tmp_path: Path) -> None:
2121 gitignore_file = config_dir / ".gitignore"
2222 gitignore_file .write_text ("*" )
2323
24- with patch ("fastapi_cloud_cli.commands.reset .Path.cwd" , return_value = tmp_path ):
25- result = runner .invoke (app , ["reset " ])
24+ with patch ("fastapi_cloud_cli.commands.unlink .Path.cwd" , return_value = tmp_path ):
25+ result = runner .invoke (app , ["unlink " ])
2626
2727 assert result .exit_code == 0
2828 assert (
29- "FastAPI Cloud configuration has been reset successfully! 🚀" in result .output
29+ "FastAPI Cloud configuration has been unlinked successfully! 🚀" in result .output
3030 )
3131
3232 assert not config_dir .exists ()
@@ -35,12 +35,12 @@ def test_reset_removes_fastapicloud_dir(tmp_path: Path) -> None:
3535 assert not gitignore_file .exists ()
3636
3737
38- def test_reset_when_no_configuration_exists (tmp_path : Path ) -> None :
38+ def test_unlink_when_no_configuration_exists (tmp_path : Path ) -> None :
3939 config_dir = tmp_path / ".fastapicloud"
4040 assert not config_dir .exists ()
4141
42- with patch ("fastapi_cloud_cli.commands.reset .Path.cwd" , return_value = tmp_path ):
43- result = runner .invoke (app , ["reset " ])
42+ with patch ("fastapi_cloud_cli.commands.unlink .Path.cwd" , return_value = tmp_path ):
43+ result = runner .invoke (app , ["unlink " ])
4444
4545 assert result .exit_code == 1
4646 assert (
0 commit comments