Skip to content

Commit

Permalink
Add broken redis test
Browse files Browse the repository at this point in the history
  • Loading branch information
Fireye04 committed Dec 6, 2024
1 parent 7711b02 commit d67721e
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/redis_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""Test Redis."""

from sasquatchbackpack import sasquatch


def test_read_write() -> None:
redis = sasquatch.RedisManager(address="redis://localhost:6379/0")

redis.store("test:abc123")

result = redis.get("test:abc123")

assert result is not None
assert redis.get("test:not-a-key") is None

0 comments on commit d67721e

Please sign in to comment.