Skip to content

Commit

Permalink
Update flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
ramnes committed Nov 4, 2023
1 parent bb8786d commit e96ec84
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: isort
args: ["--profile", "black", "--filter-files"]
- repo: https://github.com/pycqa/flake8
rev: 3.9.2
rev: 6.1.0
hooks:
- id: flake8
- repo: https://github.com/igorshubovych/markdownlint-cli
Expand Down
8 changes: 4 additions & 4 deletions tests/test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def test_iterate_paginated_api(client):
function = client.search
generator = iterate_paginated_api(function)

assert type(generator) == GeneratorType
assert isinstance(generator, GeneratorType)
assert next(generator) is not None

generator_empty = iterate_paginated_api(
Expand All @@ -83,7 +83,7 @@ def test_collect_paginated_api(client):
function = client.search
results = collect_paginated_api(function)

assert type(results) == list
assert isinstance(results, list)
assert results != []

results_empty = collect_paginated_api(function, query="This should have no results")
Expand All @@ -95,7 +95,7 @@ async def test_async_iterate_paginated_api(async_client):
function = async_client.search
generator = async_iterate_paginated_api(function)

assert type(generator) == AsyncGeneratorType
assert isinstance(generator, AsyncGeneratorType)
assert await generator.__anext__() is not None

generator_empty = async_iterate_paginated_api(
Expand All @@ -109,7 +109,7 @@ async def test_async_collect_paginated_api(async_client):
function = async_client.search
results = await async_collect_paginated_api(function)

assert type(results) == list
assert isinstance(results, list)
assert results != []

results_empty = await async_collect_paginated_api(
Expand Down

0 comments on commit e96ec84

Please sign in to comment.