Skip to content

Issue-103-test #134

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ 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 <[email protected]>"]
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"
Expand Down
6 changes: 2 additions & 4 deletions tests/test_credentials.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,8 +43,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())


Expand Down
Loading