diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2020-07-20 14:21:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-20 14:21:39 -0700 |
commit | 75a2cfe6eeca842801372c997a42707b6dca8c05 (patch) | |
tree | 9ec7cb476de049c724550e7f8e025dd103815308 /tests/test_commands.py | |
parent | 142a44a075df4f371320d6da2b8341db62fa5d15 (diff) | |
parent | 1f988d85662ec748a0111d4a6aa4e31effd020cd (diff) | |
download | redis-py-75a2cfe6eeca842801372c997a42707b6dca8c05.tar.gz |
Dockerize (#1365)
Provide a docker development and testing environment
* CI (Travis) now runs tests via the same docker environment that is available to developers.
* A simple Makefile has been added to make getting started easier.
* `make dev` will standup the development environment.
* `make test` will standup the development environment and also run the test suite.
* `make clean` will remove the development environment.
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index adaa9fc..c68f14c 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -433,12 +433,10 @@ class TestRedisCommands(object): def test_slowlog_get_limit(self, r, slowlog): assert r.slowlog_reset() r.get('foo') - r.get('bar') slowlog = r.slowlog_get(1) assert isinstance(slowlog, list) - commands = [log['command'] for log in slowlog] - assert b'GET foo' not in commands - assert b'GET bar' in commands + # only one command, based on the number we passed to slowlog_get() + assert len(slowlog) == 1 def test_slowlog_length(self, r, slowlog): r.get('foo') |