jira-to-code / src /jira_to_code /tasks /medium_7 /test_profile.py
Navigam's picture
feat: expand task suite to 22 challenges and update reward signal mechanics
6392732
Raw
History Blame Contribute Delete
270 Bytes
from profile import update_user_profile
class MockRedis:
def __init__(self): self.deleted = False
def delete(self, key): self.deleted = True
def test_cache_invalidation():
r = MockRedis()
update_user_profile(None, r, 1, {})
assert r.deleted == True