feat: +unit test

This commit is contained in:
莘权 马 2023-12-28 15:42:36 +08:00
parent 8844fa74f7
commit c61a3d2a99
10 changed files with 177 additions and 86 deletions

View file

@ -63,5 +63,5 @@ class Redis:
self._client = None
@property
def is_valid(self):
return bool(self._client)
def is_valid(self) -> bool:
return self._client is not None