• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

testit-tms / adapters-python / 21142479550

19 Jan 2026 03:10PM UTC coverage: 33.144% (-4.2%) from 37.309%
21142479550

push

github

taipoxinous
fix: test result none issue

0 of 13 new or added lines in 2 files covered. (0.0%)

758 of 2287 relevant lines covered (33.14%)

1.15 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

30.43
/testit-python-commons/src/testit_python_commons/services/retry.py
1
import logging
2✔
2
import random
2✔
3
import time
2✔
4

5
import testit_api_client
2✔
6

7

8
def retry(func):
2✔
9
    def retry_wrapper(*args, **kwargs):
2✔
10
        attempts = 0
×
11
        retries = 10
×
12

13
        while attempts < retries:
×
14
            try:
×
15
                return func(*args, **kwargs)
×
16
            except testit_api_client.exceptions.ApiException as e:
×
17
                sleep_time = random.randrange(0, 100)
×
18
                time.sleep(sleep_time/100)
×
19
                attempts += 1
×
20

21
                logging.error(e)
×
NEW
22
                if e.status == '404':
×
NEW
23
                    attempts = retries
×
NEW
24
                    return 
×
NEW
25
                if e.status == '400':
×
NEW
26
                    attempts = retries
×
NEW
27
                    return 
×
28

29
    return retry_wrapper
2✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc