Skip to content

Commit

Permalink
Merge pull request #8 from Jude188/bug/tests
Browse files Browse the repository at this point in the history
Fix failing tests
  • Loading branch information
sigmavirus24 authored Dec 19, 2019
2 parents d2a56c8 + 50156f8 commit 68f6763
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ docs/build/html/*
.venv
.env
t.py
.coverage.*
1 change: 1 addition & 0 deletions src/rush/stores/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ def _validate_url(self, attribute, value):
@client.default
def _make_client(self):
"""Create the Redis client from the URL and config."""
attr.validate(self) # Force validation of self.url
self.client_config.setdefault("decode_responses", True)
return redis.StrictRedis.from_url(
url=self.url.unsplit(), **self.client_config
Expand Down
2 changes: 1 addition & 1 deletion test/unit/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class MockStore(stores.BaseStore):
"""Mock out the BaseStore to pass isinstance checks."""

def __init__(self, recording_store=None):
"""Set-up our mocked out store."""
"""Set up our mocked out store."""
self.recording_store = recording_store or mock.Mock(
spec=["get", "get_with_time", "set", "set_with_time"]
)
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ skip_install = true
deps =
-rlint-requirements.txt
commands =
black -l 78 {env:BLACK_ARGS:} --py36 --safe src/rush test/
black -l 78 {env:BLACK_ARGS:} --target-version py36 --safe src/rush test/
flake8 src/rush test
pylint src/rush test
mypy src/rush
Expand Down

0 comments on commit 68f6763

Please sign in to comment.