mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 19:01:39 -04:00
16 lines
339 B
Python
16 lines
339 B
Python
import pytest
|
|
|
|
from modules.map import models
|
|
|
|
|
|
@pytest.mark.parametrize('size,expected', [
|
|
(0, 0),
|
|
(-1, 0),
|
|
(17737381, 4475),
|
|
(63434267, 16006),
|
|
(87745484, 22141),
|
|
(136372996, 34411),
|
|
(116318111, 29351),
|
|
])
|
|
def test_seconds_to_import_rpi4(size, expected):
|
|
assert models.seconds_to_import(size) == expected
|