mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-25 17:36:18 -05:00
Using flags.map_importing to handle map importing control. Updating RPi 4 map import estimate using create import tests, rather than slower append import tests.
This commit is contained in:
parent
6405188a98
commit
6376e6539b
9 changed files with 130 additions and 94 deletions
|
|
@ -2,17 +2,18 @@ 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, 4498),
|
||||
(63434267, 16087),
|
||||
(87745484, 22253),
|
||||
(136372996, 34586),
|
||||
(116318111, 29499),
|
||||
(17737381, 252),
|
||||
(63434267, 904),
|
||||
(87745484, 1251),
|
||||
(136372996, 1944),
|
||||
(116318111, 1658),
|
||||
])
|
||||
def test_seconds_to_import_rpi4(size, expected):
|
||||
assert models.seconds_to_import(Path('file.osm.pbf'), size) == expected
|
||||
assert modules.map.lib.seconds_to_import(size) == expected
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue