Skip to content

Commit

Permalink
added test_tenacity_retry.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavan Kongara committed Jul 7, 2023
1 parent 01c1e6a commit fc30221
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions third_party/airflow/tests/unit/test_tenacity_retry.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from job_service_mock import JobService


def test_tenacity_retry():
target_count = 3
JobService.tenacity_example(target_count)
retry_count = JobService.tenacity_example.retry.statistics["attempt_number"]
assert retry_count == target_count

0 comments on commit fc30221

Please sign in to comment.