Skip to content

Commit 7dc7236

Browse files
committed
Progress
1 parent 3b864bc commit 7dc7236

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/vws/vws.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
ProjectInactive,
2424
TargetNameExist,
2525
TargetProcessingTimeout,
26-
TargetStatusProcessing,
2726
TargetStatusNotSuccess,
27+
TargetStatusProcessing,
2828
UnknownTarget,
2929
)
3030

@@ -510,16 +510,14 @@ def update_target(
510510
for parameter details.
511511
512512
Args:
513+
target_id: The ID of the target to get details of.
513514
name: The name of the target.
514515
width: The width of the target.
515516
image: The image of the target.
516517
active_flag: Whether or not the target is active for query.
517518
application_metadata: The application metadata of the target.
518519
This will be base64 encoded.
519520
520-
Returns:
521-
The target ID of the new target.
522-
523521
Raises:
524522
~vws.exceptions.AuthenticationFailure: The secret key is not
525523
correct.
@@ -558,7 +556,7 @@ def update_target(
558556

559557
content = bytes(json.dumps(data), encoding='utf-8')
560558

561-
response = self._make_request(
559+
self._make_request(
562560
method='PUT',
563561
content=content,
564562
request_path=f'/targets/{target_id}',

tests/test_exceptions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ def test_authentication_failure(high_quality_image: io.BytesIO) -> None:
227227

228228
assert exc.value.response.status_code == codes.UNAUTHORIZED
229229

230+
230231
def test_target_status_not_success(
231232
client: VWS,
232233
high_quality_image: io.BytesIO,

0 commit comments

Comments
 (0)