You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
397 B
17 lines
397 B
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'
|