Stopping/starting renderd during map import. Moving tile cache clearing to import script.

This commit is contained in:
Roland 2023-08-17 11:47:34 -06:00
parent 6376e6539b
commit 6791e88baf
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 26 additions and 49 deletions

View file

@ -9,11 +9,11 @@ from modules.map import models
@pytest.mark.parametrize('size,expected', [
(0, 0),
(-1, 0),
(17737381, 252),
(63434267, 904),
(87745484, 1251),
(136372996, 1944),
(116318111, 1658),
(17737381, 286),
(63434267, 1025),
(87745484, 1418),
(136372996, 2203),
(116318111, 1879),
])
def test_seconds_to_import_rpi4(size, expected):
assert modules.map.lib.seconds_to_import(size) == expected