示例#1
0
文件: test_web.py 项目: tkf/neorg
 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()
示例#2
0
文件: test_web.py 项目: tkf/neorg
 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()
示例#3
0
文件: test_web.py 项目: tkf/neorg
 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
示例#4
0
文件: test_web.py 项目: tkf/neorg
 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