|
16 | 16 | # try/except added for compatibility with python < 3.8 |
17 | 17 | try: |
18 | 18 | from unittest import mock |
19 | | - from unittest.mock import AsyncMock # pragma: NO COVER |
20 | 19 | except ImportError: # pragma: NO COVER |
21 | 20 | import mock |
22 | 21 |
|
@@ -150,11 +149,11 @@ def test_bigtable_table_admin_client_wait_for_consistency(kwargs): |
150 | 149 |
|
151 | 150 | future = client.wait_for_consistency(**kwargs) |
152 | 151 |
|
153 | | - assert type(future) == consistency.CheckConsistencyPollingFuture |
| 152 | + assert isinstance(future, consistency.CheckConsistencyPollingFuture) |
154 | 153 | assert future._default_retry == kwargs.get("retry", gapic_v1.method.DEFAULT) |
155 | 154 |
|
156 | 155 | check_consistency_call = future._check_consistency_call |
157 | | - assert type(check_consistency_call) == functools.partial |
| 156 | + assert isinstance(check_consistency_call, functools.partial) |
158 | 157 |
|
159 | 158 | assert check_consistency_call.func == client.check_consistency |
160 | 159 | assert check_consistency_call.args == (kwargs.get("request", None),) |
@@ -208,11 +207,11 @@ def test_bigtable_table_admin_client_wait_for_replication(kwargs): |
208 | 207 | ) |
209 | 208 | ) |
210 | 209 |
|
211 | | - assert type(future) == consistency.CheckConsistencyPollingFuture |
| 210 | + assert isinstance(future, consistency.CheckConsistencyPollingFuture) |
212 | 211 | assert future._default_retry == kwargs.get("retry", gapic_v1.method.DEFAULT) |
213 | 212 |
|
214 | 213 | check_consistency_call = future._check_consistency_call |
215 | | - assert type(check_consistency_call) == functools.partial |
| 214 | + assert isinstance(check_consistency_call, functools.partial) |
216 | 215 |
|
217 | 216 | assert check_consistency_call.func == client.check_consistency |
218 | 217 | assert check_consistency_call.args == (expected_check_consistency_request,) |
|
0 commit comments