We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9228eb commit aa5fd16Copy full SHA for aa5fd16
tests/test_target_list.py
@@ -0,0 +1,25 @@
1
+"""
2
+Tests for helper function for getting a list of targets.
3
4
+
5
+import io
6
7
+from vws import VWS
8
9
10
+class TestListTargets:
11
+ """
12
+ Test for listing targets.
13
14
15
+ def test_list_targets(
16
+ self,
17
+ client: VWS,
18
+ high_quality_image: io.BytesIO,
19
+ ) -> None:
20
21
+ It is possible to get a list of target IDs.
22
23
+ id_1 = client.add_target(name='x', width=1, image=high_quality_image)
24
+ id_2 = client.add_target(name='a', width=1, image=high_quality_image)
25
+ assert sorted(client.list_targets()) == sorted([id_1, id_2])
0 commit comments