Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/everythingme/python-disposable-redis

Disposable Redis for your Unittests
https://github.com/everythingme/python-disposable-redis

Last synced: 4 days ago
JSON representation

Disposable Redis for your Unittests

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 DisposableRedis

class RedisTestCase(unittest.TestCase):
def test_redis_set_get(self):
with DisposableRedis() as client:
client.set('key', 'value')
self.assertEqual(client.get('key'), 'value')
```