mirror of
				https://github.com/laurivosandi/certidude
				synced 2025-10-31 17:39:12 +00:00 
			
		
		
		
	cli: Make sure user doesn't accidentally overwrite existing setup
This commit is contained in:
		| @@ -41,3 +41,11 @@ def test_cli_setup_authority_invalid_name(): | ||||
|  | ||||
|         result = runner.invoke(cli, ['setup', 'authority', '""']) | ||||
|         assert result.exception | ||||
|  | ||||
| def test_cli_setup_authority_overwrite(): | ||||
|     with runner.isolated_filesystem(): | ||||
|         result = runner.invoke(cli, ['setup', 'authority', 'foo']) | ||||
|         assert not result.exception | ||||
|  | ||||
|         result = runner.invoke(cli, ['setup', 'authority', 'foo']) | ||||
|         assert result.exception | ||||
|   | ||||
		Reference in New Issue
	
	Block a user