mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 19:36:20 -05:00
Converting seconds_to_import to use param instead of global variable.
This commit is contained in:
parent
97fcfd93ce
commit
30a3ef1cac
2 changed files with 3 additions and 5 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import unittest.mock
|
||||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
|
|
@ -100,8 +99,7 @@ def test_seconds_to_import_rpi4(size, expected):
|
|||
(11346305075, 188040),
|
||||
])
|
||||
def test_seconds_to_import_rpi5(size, expected):
|
||||
with unittest.mock.patch('modules.map.lib.IS_RPI5', True):
|
||||
assert lib.seconds_to_import(size) == expected
|
||||
assert lib.seconds_to_import(size, True) == expected
|
||||
|
||||
|
||||
def test_get_custom_map_directory(test_directory, test_config):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue