Skip to content

Commit 869bfac

Browse files
author
Chien Yuan Chang
committed
[TEST] remove status check
1 parent 9cdc30f commit 869bfac

File tree

6 files changed

+0
-15
lines changed

6 files changed

+0
-15
lines changed

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/samples/test_sample_analyze_binary.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ def test_sample_analyze_binary(self, contentunderstanding_endpoint: str) -> None
8383
# Assertion: Verify analysis operation completed
8484
assert poller is not None, "Analysis operation should not be null"
8585
assert poller.done(), "Operation should be completed"
86-
87-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
8886
print("[PASS] Analysis operation completed successfully")
8987

9088
# Assertion: Verify result

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/samples/test_sample_analyze_binary_async.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ async def test_sample_analyze_binary_async(self, contentunderstanding_endpoint:
8383
# Assertion: Verify analysis operation completed
8484
assert poller is not None, "Analysis operation should not be null"
8585
assert poller.done(), "Operation should be completed"
86-
87-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
8886
print("[PASS] Analysis operation completed successfully")
8987

9088
# Assertion: Verify result

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/samples/test_sample_analyze_url.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ def test_sample_analyze_document_from_url(self, contentunderstanding_endpoint: s
5858
# Assertion: Verify analysis operation completed
5959
assert poller is not None, "Analysis operation should not be null"
6060
assert poller.done(), "Operation should be completed"
61-
62-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
6361
print("[PASS] Analysis operation completed successfully")
6462

6563
# Assertion: Verify result
@@ -105,7 +103,6 @@ def test_sample_analyze_video_from_url(self, contentunderstanding_endpoint: str)
105103
# Assertion: Verify analysis operation completed
106104
assert poller is not None, "Analysis operation should not be null"
107105
assert poller.done(), "Operation should be completed"
108-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
109106
print("[PASS] Analysis operation completed successfully")
110107

111108
# Assertion: Verify result
@@ -148,7 +145,6 @@ def test_sample_analyze_audio_from_url(self, contentunderstanding_endpoint: str)
148145
# Assertion: Verify analysis operation completed
149146
assert poller is not None, "Analysis operation should not be null"
150147
assert poller.done(), "Operation should be completed"
151-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
152148
print("[PASS] Analysis operation completed successfully")
153149

154150
# Assertion: Verify result

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/samples/test_sample_analyze_url_async.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ async def test_sample_analyze_document_from_url_async(self, contentunderstanding
6060
# Assertion: Verify analysis operation completed
6161
assert poller is not None, "Analysis operation should not be null"
6262
assert poller.done(), "Operation should be completed"
63-
64-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
6563
print("[PASS] Analysis operation completed successfully")
6664

6765
# Assertion: Verify result
@@ -116,7 +114,6 @@ async def test_sample_analyze_video_from_url_async(self, contentunderstanding_en
116114
# Assertion: Verify analysis operation completed
117115
assert poller is not None, "Analysis operation should not be null"
118116
assert poller.done(), "Operation should be completed"
119-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
120117
print("[PASS] Analysis operation completed successfully")
121118

122119
# Assertion: Verify result
@@ -162,7 +159,6 @@ async def test_sample_analyze_audio_from_url_async(self, contentunderstanding_en
162159
# Assertion: Verify analysis operation completed
163160
assert poller is not None, "Analysis operation should not be null"
164161
assert poller.done(), "Operation should be completed"
165-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
166162
print("[PASS] Analysis operation completed successfully")
167163

168164
# Assertion: Verify result
@@ -206,7 +202,6 @@ async def test_sample_analyze_image_from_url_async(self, contentunderstanding_en
206202
# Assertion: Verify analysis operation completed
207203
assert poller is not None, "Analysis operation should not be null"
208204
assert poller.done(), "Operation should be completed"
209-
assert poller.status() == "Succeeded", f"Operation status should be Succeeded, but was {poller.status()}"
210205
print("[PASS] Analysis operation completed successfully")
211206

212207
# Assertion: Verify result

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/test_content_understanding_content_analyzers_operations.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ def create_analyzer_and_assert_sync(
5757
print(f" Waiting for analyzer {analyzer_id} to be created")
5858
response = poller.result()
5959
assert response is not None
60-
assert poller.status() == "Succeeded"
6160
assert poller.done()
6261
print(f" Analyzer {analyzer_id} is created successfully")
6362

sdk/contentunderstanding/azure-ai-contentunderstanding/tests/test_content_understanding_content_analyzers_operations_async.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ async def create_analyzer_and_assert_async(
5858
print(f" Waiting for analyzer {analyzer_id} to be created")
5959
response = await poller.result()
6060
assert response is not None
61-
assert poller.status() == "Succeeded"
6261
assert poller.done()
6362
print(f" Analyzer {analyzer_id} is created successfully")
6463

0 commit comments

Comments
 (0)