示例#1
0
 def test_non_template_changed_in_template_directory(self, mock_reset):
     self.assertIsNone(autoreload.template_changed(None, Path(__file__)))
     mock_reset.assert_not_called()
示例#2
0
 def test_template_changed(self, mock_reset):
     template_path = Path(__file__).parent / "templates" / "index.html"
     self.assertTrue(autoreload.template_changed(None, template_path))
     mock_reset.assert_called_once()