MCPcopy Create free account
hub / github.com/Keeper-Security/Commander / test_parse_timeout

Route test_parse_timeout

unit-tests/commands/helpers/test_timeout.py:None–None  ·  view source on GitHub ↗
pytest.mark.parametrize(
    'time_input,expected',
    [
        ('3', timedelta(minutes=3)),
        ('1d2h3mi', timedelta(days=1, hours=2, minutes=3)),
        ('4 minutes 5 hours 6 days', timedelt

Source from the content-addressed store, hash-verified

1from datetime import timedelta
2from unittest import TestCase
3
4import pytest

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected