Skip to content

Commit 344eee8

Browse files
Merge pull request #134 from dirkpetersen/issue-103-test
2 parents 3514a69 + 479ed1e commit 344eee8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Diff for: pyproject.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "froster"
7-
version = "0.16.10"
7+
version = "0.16.11"
88
description = "Froster is a tool for easy data transfer between local file systems and AWS S3 storage."
99
authors = ["Victor Machado <[email protected]>"]
1010
readme = "README.md"
1111
license = "MIT"
1212

1313
[tool.poetry.dependencies]
14-
python = "^3.8.1"
14+
python = "^3.8"
1515
boto3 = "^1.34.119"
1616
duckdb = "^1.0.0"
1717
inquirer = "^3.2.4"

Diff for: tests/test_credentials.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ def setUpClass(cls):
1818
patch('sys.argv', ['froster', 'config']), \
1919
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]), \
2020
patch('inquirer.confirm', side_effect=[False, False, True, False]), \
21-
patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]), \
22-
patch('builtins.print') as mock_print:
21+
patch('inquirer.list_input', side_effect=['+ Create new profile', PROVIDER_1, '+ Create new credentials', AWS_REGION_1, '+ Create new bucket', S3_STORAGE_CLASS_1]):
2322
main()
2423

2524
# Method executed once after all tests
@@ -44,8 +43,7 @@ def test_subcmd_credentials(self):
4443

4544
# Run the index command and check if sys.exit(0), which means no issues detected while executing the command
4645
with \
47-
patch('sys.argv', ['froster', 'credentials']), \
48-
patch('builtins.print') as mock_print:
46+
patch('sys.argv', ['froster', 'credentials']):
4947
self.assertFalse(main())
5048

5149

0 commit comments

Comments
 (0)