Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_with_reloader(reloader, site):
reloader.watch_called = False
def watch(self):
reloader.watch_called = True
Reloader.watch = watch
site.render(use_reloader=True)
assert reloader.watch_called