def test_system_info(self): from neorg import __version__ from neorg.web import system_info sysinfo = system_info() assert sysinfo['version'] == __version__ assert sysinfo['updated'].startswith('20') assert sysinfo['updated'][:4].isdigit()
def test_update_system_info_to_current(self): from neorg.web import update_system_info, system_info sysinfo_0 = system_info() update_system_info() sysinfo_1 = system_info() assert sysinfo_0 == sysinfo_1 # nothing changed