feat(F4): add SecurityConfig model to VigilarConfig
This commit is contained in:
@@ -82,6 +82,20 @@ class TestPetActivityConfig:
|
||||
assert cfg.zoomie_threshold == 0.8
|
||||
|
||||
|
||||
def test_security_config_defaults():
|
||||
from vigilar.config import SecurityConfig
|
||||
sc = SecurityConfig()
|
||||
assert sc.pin_hash == ""
|
||||
assert sc.recovery_passphrase_hash == ""
|
||||
|
||||
|
||||
def test_vigilar_config_has_security():
|
||||
from vigilar.config import VigilarConfig
|
||||
cfg = VigilarConfig()
|
||||
assert cfg.security.pin_hash == ""
|
||||
assert cfg.security.recovery_passphrase_hash == ""
|
||||
|
||||
|
||||
class TestCameraConfigLocation:
|
||||
def test_default_location_is_interior(self):
|
||||
from vigilar.config import CameraConfig
|
||||
|
||||
Reference in New Issue
Block a user