Skip to content

Commit 4d4f1ad

Browse files
committed
Fix lint error (E721) in unit tests
1 parent 30f3d82 commit 4d4f1ad

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Changelog
22
=========
33

4-
[1.1.6](../../releases/tag/v1.4.5) - Unreleased
4+
[1.1.6](../../releases/tag/v1.1.6) - Unreleased
55
-----------------------------------------------
66

7-
...
7+
### Internal changes
8+
9+
- Fix lint error (E721) in unit tests (for instance checks use `isinstance()`)
810

9-
[1.1.5](../../releases/tag/v1.4.5) - 2023-10-03
11+
[1.1.5](../../releases/tag/v1.1.5) - 2023-10-03
1012
-----------------------------------------------
1113

1214
### Added

tests/unit/actor/test_actor_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ async def test_actor_new_client_config(self, monkeypatch: pytest.MonkeyPatch) ->
1515
await my_actor.init()
1616

1717
client = my_actor.new_client()
18-
assert type(client) == ApifyClientAsync
18+
assert isinstance(client, ApifyClientAsync)
1919
assert client.token == token
2020

2121
passed_token = 'my-passed-token'
2222
client_with_token = my_actor.new_client(token=passed_token)
23-
assert type(client_with_token) == ApifyClientAsync
23+
assert isinstance(client_with_token, ApifyClientAsync)
2424
assert client_with_token.token == passed_token
2525

2626
await my_actor.exit()

0 commit comments

Comments
 (0)