Skip to content

Commit 0f409db

Browse files
author
Victor Machado
committed
Delete all froster-unittest buckets
1 parent 40bce7c commit 0f409db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Diff for: tests/test_credentials.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ def setUpClass(cls):
2121
patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]):
2222
main()
2323

24+
# Delete all unittest buckets
25+
with \
26+
patch('sys.argv', ['froster', '--debug', 'delete', '--bucket', 'froster-unittest']), \
27+
patch('builtins.print') as mock_print:
28+
main()
29+
2430
# Method executed once after all tests
2531

2632
@classmethod
@@ -29,12 +35,12 @@ def tearDownClass(cls):
2935

3036
# Delete the S3 buckets
3137
with \
32-
patch('sys.argv', ['froster', '--debug', 'delete', '--bucket', S3_BUCKET_NAME_CONFIG_1]), \
38+
patch('sys.argv', ['froster', '--debug', 'delete', '--bucket', S3_BUCKET_NAME_CREDENTIALS_1]), \
3339
patch('builtins.print') as mock_print:
3440
main()
3541

3642
with \
37-
patch('sys.argv', ['froster', '--debug', 'delete', '--bucket', S3_BUCKET_NAME_CONFIG_2]), \
43+
patch('sys.argv', ['froster', '--debug', 'delete', '--bucket', S3_BUCKET_NAME_CREDENTIALS_2]), \
3844
patch('builtins.print') as mock_print:
3945
main()
4046

0 commit comments

Comments
 (0)