mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-09 10:54:11 -04:00
This changeset copies everything in notifications_utils to turn into a local project module. It includes dependency changes to account for this adjustment and the notifications_utils tests. It also fixes all of the import statements. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
8 lines
228 B
Python
8 lines
228 B
Python
from notifications_utils.clients.redis import rate_limit_cache_key
|
|
|
|
|
|
def test_rate_limit_cache_key(sample_service):
|
|
assert rate_limit_cache_key(sample_service.id, "TEST") == "{}-TEST".format(
|
|
sample_service.id
|
|
)
|