Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flesh out RedisDeque() code and tests #36

Merged
merged 13 commits into from
Jan 12, 2017
Merged

Conversation

brainix
Copy link
Owner

@brainix brainix commented Jan 11, 2017

No description provided.

brainix and others added 8 commits January 10, 2017 19:51
Make it faster/easier/cheaper to run through the entire unit test suite
while writing/debugging code locally.
- `RedisDeque.append()`
- `RedisDeque.appendleft()`
- `RedisDeque.pop()`
- `RedisDeque.popleft()`
Before, I was naively `from tests.base import run_doctests`.  This
worked fine against source, but broke against the released package.
Ensure that neither self nor other changes during an equality
comparison.  If either changes, then (implicitly) raise a WatchError.
`RedisList.__eq__()` looks recursive, but it isn't, because a slice of a
`RedisList` is a normal Python list (not a `RedisList`).
Explicitly avoid evaluating:
- `[]` as equal to `{}`, and
- `[0, 1]` as equal to `{0: 0, 1: 1}`

Also more cleanly separate mixin classes by behavior.
@brainix brainix force-pushed the flesh-out-redis-deque branch 2 times, most recently from d66fe64 to 5bd8ce6 Compare January 12, 2017 00:56
@brainix brainix force-pushed the flesh-out-redis-deque branch from 5bd8ce6 to 637bd39 Compare January 12, 2017 01:03
@brainix
Copy link
Owner Author

brainix commented Jan 12, 2017

RedisDeque() still isn't done, but it's better than before, and this pull request is getting too big. Let's squash/merge this pull request, and open up a new pull request to continue work on RedisDeque(). 🔥 👢 🔥

@brainix brainix merged commit 454822d into master Jan 12, 2017
@brainix brainix deleted the flesh-out-redis-deque branch January 12, 2017 05:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant