We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7fd904 + fbaf63c commit 2e82bcdCopy full SHA for 2e82bcd
tests/test_add_target.py
@@ -22,7 +22,18 @@ def test_add_target(
22
"""
23
No exception is raised when adding one target.
24
25
- client.add_target(name='x', width=1, image=high_quality_image)
+ name = 'x'
26
+ width = 1
27
+ target_id = client.add_target(
28
+ name=name,
29
+ width=width,
30
+ image=high_quality_image,
31
+ )
32
+ get_result = client.get_target(target_id=target_id)
33
+ target_record = get_result['target_record']
34
+ assert target_record['name'] == name
35
+ assert target_record['width'] == width
36
+ assert target_record['active_flag'] is True
37
38
def test_add_two_targets(
39
self,
0 commit comments