from notiframe import Notiframe import os import toml mydir = os.path.dirname(os.path.abspath(__file__)) def test_config_dumpload(tmp_path): path = os.path.join(tmp_path, 'config.toml') mgr = Notiframe.Manager() mgr.add_device('test', [1,2]) mgr.export_config_file(path) mgr = Notiframe.Manager() mgr.import_config_file(path) assert mgr.devices[0].name == 'test'