def test_cached_result_expiration_none_is_interpreted_as_infinite(self): state = Cached(cached_result_expiration=None) assert duration_only(state, None, None) is True
def test_unexpired_cache(self): state = Cached(cached_result_expiration=pendulum.now("utc") + timedelta(days=1)) assert duration_only(state, None, None) is True