mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-06-29 06:00:45 +00:00
[ISS-1258][DC] renaming the function to meet length requirements
This commit is contained in:
parent
bf3835367d
commit
aa1eaf5274
2 changed files with 6 additions and 6 deletions
|
|
@ -7,7 +7,7 @@ import pytest
|
|||
from pre_commit_hooks.detect_aws_credentials import get_aws_cred_files_from_env
|
||||
from pre_commit_hooks.detect_aws_credentials import get_aws_secrets_from_env
|
||||
from pre_commit_hooks.detect_aws_credentials import get_aws_secrets_from_file
|
||||
from pre_commit_hooks.detect_aws_credentials import get_aws_secrets_from_json_file
|
||||
from pre_commit_hooks.detect_aws_credentials import get_aws_secrets_from_json
|
||||
from pre_commit_hooks.detect_aws_credentials import main
|
||||
from testing.util import get_resource_path
|
||||
|
||||
|
|
@ -84,9 +84,9 @@ def test_get_aws_secrets_from_env(env_vars, values):
|
|||
('ok_json.json', set()),
|
||||
),
|
||||
)
|
||||
def test_get_aws_secrets_from_json_file(filename, expected_keys):
|
||||
def test_get_aws_secrets_from_json(filename, expected_keys):
|
||||
"""Test that reading secrets from files works."""
|
||||
keys = get_aws_secrets_from_json_file(get_resource_path(filename))
|
||||
keys = get_aws_secrets_from_json(get_resource_path(filename))
|
||||
assert keys == expected_keys
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue