How to use the staticjinja.Reloader.watch function in staticjinja

To help you get started, we’ve selected a few staticjinja examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Ceasar / staticjinja / test_staticjinja.py View on Github external
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