Esempio n. 1
0
 def test_system_check_doesnt_warn(self):
     sys_info = "({0}, {1})".format(sys.version_info.major,
                                    sys.version_info.minor)
     with pytest.warns(None) as records:
         healthchecks.system_check(sys_info)
     assert len(records) == 0
Esempio n. 2
0
 def test_system_check_just_warns(self):
     with pytest.warns(UserWarning, match="unexpected errors"):
         healthchecks.system_check("(3, 4)")