test_config.py 535 B

12345678910111213
  1. # test_config.py/Open GoPro, Version 2.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro).
  2. # This copyright was auto-generated on Thu Feb 27 22:11:09 UTC 2025
  3. from pathlib import Path
  4. from kmp_proto_manipulator.entities.config import ProtoObjectScope
  5. from kmp_proto_manipulator.parsers.config import ConfigParser
  6. def test_parse_config(config_as_path: Path):
  7. config = ConfigParser.parse_config(config_as_path)
  8. assert len(config.root) == 11
  9. assert config.root["PresetSetting"].scope == ProtoObjectScope.PUBLIC