Skip to content

Commit 6760c67

Browse files
committed
Expand test for add target
1 parent f7fd904 commit 6760c67

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/test_add_target.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,19 @@ def test_add_target(
2222
"""
2323
No exception is raised when adding one target.
2424
"""
25-
client.add_target(name='x', width=1, image=high_quality_image)
25+
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'] == True
37+
2638

2739
def test_add_two_targets(
2840
self,

0 commit comments

Comments
 (0)