mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-21 07:26:18 -05:00
Using worst-case-scenario for calculating map time-to-import.
This commit is contained in:
parent
48944c32ac
commit
d2fbf12e26
1 changed files with 10 additions and 10 deletions
|
|
@ -5,14 +5,14 @@ import pytest
|
|||
from modules.map import models
|
||||
|
||||
|
||||
@pytest.mark.parametrize('path,size,expected', [
|
||||
('file.osm.pbf', 0, 0),
|
||||
('file.osm.pbf', -1, 0),
|
||||
('file.osm.pbf', 17737381, 4498),
|
||||
('file.osm.pbf', 63434267, 16087),
|
||||
('file.osm.pbf', 87745484, 22253),
|
||||
('file.osm.pbf', 136372996, 34586),
|
||||
('file.osm.pbf', 116318111, 29499),
|
||||
@pytest.mark.parametrize('size,expected', [
|
||||
(0, 0),
|
||||
(-1, 0),
|
||||
(17737381, 4498),
|
||||
(63434267, 16087),
|
||||
(87745484, 22253),
|
||||
(136372996, 34586),
|
||||
(116318111, 29499),
|
||||
])
|
||||
def test_seconds_to_import_rpi4(path, size, expected):
|
||||
assert models.seconds_to_import(Path(path), size) == expected
|
||||
def test_seconds_to_import_rpi4(size, expected):
|
||||
assert models.seconds_to_import(Path('file.osm.pbf'), size) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue