From 4895190534b5b350d6ef7fe01f9961cc9c30ae56 Mon Sep 17 00:00:00 2001 From: Victor Machado Date: Tue, 2 Jul 2024 17:13:52 +0200 Subject: [PATCH 1/5] verbose test_credentials command --- tests/test_credentials.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_credentials.py b/tests/test_credentials.py index 78f9840..b5a33dc 100644 --- a/tests/test_credentials.py +++ b/tests/test_credentials.py @@ -44,8 +44,7 @@ def test_subcmd_credentials(self): # Run the index command and check if sys.exit(0), which means no issues detected while executing the command with \ - patch('sys.argv', ['froster', 'credentials']), \ - patch('builtins.print') as mock_print: + patch('sys.argv', ['froster', 'credentials']): self.assertFalse(main()) From eeaac2917e94dc8f03100bc7179263425f825da0 Mon Sep 17 00:00:00 2001 From: Victor Machado Date: Tue, 2 Jul 2024 17:15:43 +0200 Subject: [PATCH 2/5] Verbose test_credentials setUpClass --- tests/test_credentials.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_credentials.py b/tests/test_credentials.py index b5a33dc..2f3787d 100644 --- a/tests/test_credentials.py +++ b/tests/test_credentials.py @@ -18,8 +18,7 @@ def setUpClass(cls): patch('sys.argv', ['froster', 'config']), \ patch('inquirer.text', side_effect=[NAME_1, EMAIL_1, PROFILE_1, AWS_CREDENTIALS_PROFILE_1, AWS_ACCESS_KEY_ID, AWS_SECRET, S3_BUCKET_NAME_CREDENTIALS_1, S3_ARCHIVE_DIR_1]), \ patch('inquirer.confirm', side_effect=[False, False, True, False]), \ - patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]), \ - patch('builtins.print') as mock_print: + patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]) main() # Method executed once after all tests From 6d783d680c3facfc2bcc4c78eddd6e3971f5c71f Mon Sep 17 00:00:00 2001 From: Victor Machado Date: Tue, 2 Jul 2024 17:16:41 +0200 Subject: [PATCH 3/5] bugfix --- tests/test_credentials.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_credentials.py b/tests/test_credentials.py index 2f3787d..19ffb6d 100644 --- a/tests/test_credentials.py +++ b/tests/test_credentials.py @@ -18,7 +18,7 @@ def setUpClass(cls): patch('sys.argv', ['froster', 'config']), \ patch('inquirer.text', side_effect=[NAME_1, EMAIL_1, PROFILE_1, AWS_CREDENTIALS_PROFILE_1, AWS_ACCESS_KEY_ID, AWS_SECRET, S3_BUCKET_NAME_CREDENTIALS_1, S3_ARCHIVE_DIR_1]), \ patch('inquirer.confirm', side_effect=[False, False, True, False]), \ - patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]) + patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]): main() # Method executed once after all tests From f2628e89a9c7d45c59446abf66d4053177b3a487 Mon Sep 17 00:00:00 2001 From: Victor Machado Date: Tue, 2 Jul 2024 17:19:34 +0200 Subject: [PATCH 4/5] typo in pyproject.toml --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 6b18838..d839388 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,7 +11,7 @@ readme = "README.md" license = "MIT" [tool.poetry.dependencies] -python = "^3.8.1" +python = "^3.8" boto3 = "^1.34.119" duckdb = "^1.0.0" inquirer = "^3.2.4" From 479ed1e7cbcff089b07b12c927ca7df9c2fb04a5 Mon Sep 17 00:00:00 2001 From: Victor Machado Date: Tue, 2 Jul 2024 17:20:01 +0200 Subject: [PATCH 5/5] froster v0.10.11 --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d839388..ebb217d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "froster" -version = "0.16.10" +version = "0.16.11" description = "Froster is a tool for easy data transfer between local file systems and AWS S3 storage." authors = ["Victor Machado "] readme = "README.md"