Searched refs:timedelta (Results 1 – 10 of 10) sorted by relevance
/curl/tests/http/ |
H A D | test_03_goaway.py | 29 from datetime import timedelta 77 assert r.duration >= timedelta(seconds=count) 102 assert nghttpx.reload(timeout=timedelta(seconds=2)) 106 assert r.duration >= timedelta(seconds=count-1) 145 assert r.duration >= timedelta(seconds=count)
|
H A D | test_12_reuse.py | 29 from datetime import datetime, timedelta 87 ts = datetime.now() + timedelta(hours=24) 109 ts = datetime.now() + timedelta(hours=24) 131 ts = datetime.now() + timedelta(hours=24)
|
H A D | test_20_websockets.py | 32 from datetime import datetime, timedelta 48 end = datetime.now() + timedelta(seconds=timeout)
|
H A D | test_02_download.py | 33 from datetime import timedelta 468 assert r.duration > timedelta(seconds=min_duration), \
|
/curl/tests/http/testenv/ |
H A D | certs.py | 30 from datetime import timedelta, datetime, timezone 80 valid_from: timedelta = timedelta(days=-1), argument 81 valid_to: timedelta = timedelta(days=89), argument 353 valid_from: timedelta = timedelta(days=-1), argument 354 valid_to: timedelta = timedelta(days=89), argument 501 valid_from: timedelta = timedelta(days=-1), argument 502 valid_to: timedelta = timedelta(days=89), argument 524 valid_from: timedelta = timedelta(days=-1), argument 525 valid_to: timedelta = timedelta(days=89), argument 542 valid_from: timedelta = timedelta(days=-1), argument [all …]
|
H A D | nghttpx.py | 33 from datetime import datetime, timedelta 98 return not wait_dead or self.wait_dead(timeout=timedelta(seconds=5)) 105 def reload(self, timeout: timedelta): argument 128 return self.wait_live(timeout=timedelta(seconds=5)) 131 def wait_dead(self, timeout: timedelta): argument 154 def wait_live(self, timeout: timedelta): argument 228 return not wait_live or self.wait_live(timeout=timedelta(seconds=5)) 260 return not wait_live or self.wait_live(timeout=timedelta(seconds=5)) 262 def wait_dead(self, timeout: timedelta): argument 275 def wait_live(self, timeout: timedelta): argument
|
H A D | vsftpd.py | 32 from datetime import datetime, timedelta 105 return not wait_dead or self.wait_dead(timeout=timedelta(seconds=5)) 125 return not wait_live or self.wait_live(timeout=timedelta(seconds=5)) 127 def wait_dead(self, timeout: timedelta): argument 140 def wait_live(self, timeout: timedelta): argument
|
H A D | caddy.py | 31 from datetime import timedelta, datetime 88 return not wait_live or self.wait_live(timeout=timedelta(seconds=5)) 101 return not wait_dead or self.wait_dead(timeout=timedelta(seconds=5)) 108 def wait_dead(self, timeout: timedelta): argument 121 def wait_live(self, timeout: timedelta): argument
|
H A D | httpd.py | 31 from datetime import timedelta, datetime 155 return self.wait_live(timeout=timedelta(seconds=5)) 161 return self.wait_dead(timeout=timedelta(seconds=5)) 176 return self.wait_live(timeout=timedelta(seconds=5)) 183 def wait_dead(self, timeout: timedelta): argument 194 def wait_live(self, timeout: timedelta): argument
|
H A D | curl.py | 39 from datetime import timedelta, datetime 65 self._duration = timedelta(seconds=0) 72 def duration(self) -> timedelta: 188 duration: Optional[timedelta] = None, argument 200 self._duration = duration if duration is not None else timedelta() 262 def duration(self) -> timedelta: 774 end_at = started_at + timedelta(seconds=self._timeout) \
|
Completed in 22 milliseconds