mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-06-29 06:00:45 +00:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
6f0f112e53
commit
bf3835367d
3 changed files with 24 additions and 17 deletions
|
|
@ -68,19 +68,20 @@ def test_get_aws_secrets_from_env(env_vars, values):
|
|||
with patch.dict('os.environ', env_vars, clear=True):
|
||||
assert get_aws_secrets_from_env() == values
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
('filename', 'expected_keys'),
|
||||
(
|
||||
(
|
||||
'aws_temp_secrets_file.json',
|
||||
{
|
||||
"tempAccessKeyId",
|
||||
"tempSecretAccessKey",
|
||||
"tempSessionToken"
|
||||
},
|
||||
),
|
||||
('nonsense.txt', set()),
|
||||
('ok_json.json', set()),
|
||||
(
|
||||
'aws_temp_secrets_file.json',
|
||||
{
|
||||
'tempAccessKeyId',
|
||||
'tempSecretAccessKey',
|
||||
'tempSessionToken',
|
||||
},
|
||||
),
|
||||
('nonsense.txt', set()),
|
||||
('ok_json.json', set()),
|
||||
),
|
||||
)
|
||||
def test_get_aws_secrets_from_json_file(filename, expected_keys):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue