MCPcopy Create free account
hub / github.com/TheSecuredAnalyst/security-suite / test_duration

Method test_duration

tests/test_core.py:65–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 result.complete()
64 assert result.completed_at is not None
65
66 def test_duration(self):
67 target = Target.from_string("example.com")
68 result = ScanResult(target=target, module="test")
69 result.complete()
70
71 assert result.duration_seconds is not None
72 assert result.duration_seconds >= 0
73
74

Callers

nothing calls this directly

Calls 3

completeMethod · 0.95
ScanResultClass · 0.90
from_stringMethod · 0.80

Tested by

no test coverage detected