Skip to content

Commit

Permalink
Fix lint error (E721) in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Oct 18, 2023
1 parent 30f3d82 commit 4d4f1ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
Changelog
=========

[1.1.6](../../releases/tag/v1.4.5) - Unreleased
[1.1.6](../../releases/tag/v1.1.6) - Unreleased
-----------------------------------------------

...
### Internal changes

- Fix lint error (E721) in unit tests (for instance checks use `isinstance()`)

[1.1.5](../../releases/tag/v1.4.5) - 2023-10-03
[1.1.5](../../releases/tag/v1.1.5) - 2023-10-03
-----------------------------------------------

### Added
Expand Down
4 changes: 2 additions & 2 deletions tests/unit/actor/test_actor_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ async def test_actor_new_client_config(self, monkeypatch: pytest.MonkeyPatch) ->
await my_actor.init()

client = my_actor.new_client()
assert type(client) == ApifyClientAsync
assert isinstance(client, ApifyClientAsync)
assert client.token == token

passed_token = 'my-passed-token'
client_with_token = my_actor.new_client(token=passed_token)
assert type(client_with_token) == ApifyClientAsync
assert isinstance(client_with_token, ApifyClientAsync)
assert client_with_token.token == passed_token

await my_actor.exit()
Expand Down

0 comments on commit 4d4f1ad

Please sign in to comment.