Skip to content

Commit

Permalink
flake8 changes along the way apparently
Browse files Browse the repository at this point in the history
  • Loading branch information
chayim committed Nov 29, 2022
1 parent b80dd00 commit bc46812
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions redis/ocsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,9 @@ def _bin2ascii(self, der):
return cert

def components_from_socket(self):
"""This function returns the certificate, primary issuer, and primary ocsp server
in the chain for a socket already wrapped with ssl.
"""This function returns the certificate, primary issuer, and
primary ocsp server in the chain for a socket already
wrapped with ssl.
"""

# convert the binary certifcate to text
Expand Down
4 changes: 2 additions & 2 deletions tests/test_asyncio/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ async def test_cached_execution(modclient: redis.Redis):
async def test_slowlog(modclient: redis.Redis):
create_query = """CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
(:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}),
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"""
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})""" # noqa
await modclient.graph().query(create_query)

results = await modclient.graph().slowlog()
Expand Down Expand Up @@ -397,7 +397,7 @@ async def test_execution_plan(modclient: redis.Redis):
redis_graph = modclient.graph("execution_plan")
create_query = """CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
(:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}),
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"""
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})""" # noqa
await redis_graph.query(create_query)

result = await redis_graph.execution_plan(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def test_cached_execution(client):
def test_slowlog(client):
create_query = """CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
(:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}),
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"""
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})""" # noqa
client.graph().query(create_query)

results = client.graph().slowlog()
Expand Down Expand Up @@ -488,7 +488,7 @@ def test_execution_plan(client):
redis_graph = client.graph("execution_plan")
create_query = """CREATE (:Rider {name:'Valentino Rossi'})-[:rides]->(:Team {name:'Yamaha'}),
(:Rider {name:'Dani Pedrosa'})-[:rides]->(:Team {name:'Honda'}),
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})"""
(:Rider {name:'Andrea Dovizioso'})-[:rides]->(:Team {name:'Ducati'})""" # noqa
redis_graph.query(create_query)

result = redis_graph.execution_plan(
Expand Down

0 comments on commit bc46812

Please sign in to comment.