wrolpi/modules/map/test/test_models.py

19 lines
391 B
Python

from pathlib import Path
import pytest
import modules.map.lib
from modules.map import models
@pytest.mark.parametrize('size,expected', [
(0, 0),
(-1, 0),
(17737381, 252),
(63434267, 904),
(87745484, 1251),
(136372996, 1944),
(116318111, 1658),
])
def test_seconds_to_import_rpi4(size, expected):
assert modules.map.lib.seconds_to_import(size) == expected