Skip to content
This repository was archived by the owner on Oct 30, 2026. It is now read-only.

Commit 2d6aaf9

Browse files
Merge pull request #3258 from VWS-Python/prefer-exact-test-assertions
Prefer exact assertions in tests
2 parents cd491c8 + 34a112e commit 2d6aaf9

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎tests/test_async_vws.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ async def test_delete_target(
207207
target_id=target_id,
208208
)
209209
targets = await async_vws_client.list_targets()
210-
assert target_id in targets
210+
assert targets == [target_id]
211211
await async_vws_client.delete_target(
212212
target_id=target_id,
213213
)
214214
targets = await async_vws_client.list_targets()
215-
assert target_id not in targets
215+
assert targets == []
216216

217217

218218
class TestGetTargetSummaryReport:

‎tests/test_vws.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ def test_delete_target(
365365
)
366366

367367
vws_client.wait_for_target_processed(target_id=target_id)
368-
assert target_id in vws_client.list_targets()
368+
assert vws_client.list_targets() == [target_id]
369369
vws_client.delete_target(target_id=target_id)
370-
assert target_id not in vws_client.list_targets()
370+
assert vws_client.list_targets() == []
371371

372372

373373
class TestGetTargetSummaryReport:

0 commit comments

Comments
 (0)