https://github.com/everythingme/python-disposable-redis
Disposable Redis for your Unittests
https://github.com/everythingme/python-disposable-redis
Last synced: 4 months ago
JSON representation
Disposable Redis for your Unittests
- Host: GitHub
- URL: https://github.com/everythingme/python-disposable-redis
- Owner: EverythingMe
- License: bsd-2-clause
- Created: 2015-08-04T11:05:43.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-04T11:23:50.000Z (almost 10 years ago)
- Last Synced: 2025-01-18T00:13:24.309Z (6 months ago)
- Language: Python
- Homepage:
- Size: 129 KB
- Stars: 3
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# disposable-redis
Disposable Redis for your Unittests
## Installation
`pip install disposable-redis`
## Usage
```python
import unittest
from disposableredis import DisposableRedisclass RedisTestCase(unittest.TestCase):
def test_redis_set_get(self):
with DisposableRedis() as client:
client.set('key', 'value')
self.assertEqual(client.get('key'), 'value')
```