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.
NotiFrame/tests/test_manager.py

15 lines
368 B

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